Commit Graph

41 Commits

Author SHA1 Message Date
Dico200
1750c82208 Changed all CommandExecutor arguments
Added arguments command and label to all command executor functions,
hopefully for massive performance increase.

This is due to the following mess in PythonLoader:
``` Java
@Override
public boolean onCommand(CommandSender sender, Command command, String
label, String[] args) {
boolean result;
if (argcount == -1) {
try {
result = call(4, sender, command, label, args);
argcount = 4;
} catch (PyException e) {
//this could goof up someone ... they'll probably yell at us and
eventually read this code ... fuck them
if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 3 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 4 arguments (5 given)"))) {
result = call(3, sender, command, label, args);
argcount = 3;
} else if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 2 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 3 arguments (5 given)"))) {
result = call(2, sender, command, label, args);
argcount = 2;
} else {
throw e;
}
}
} else {
result = call(argcount, sender, command, label, args);
}
return result;
}
```

Note: Still WIP on reports - I'm working on making it keep solved
reports to fix issue 10
2015-03-19 23:51:33 +01:00
jomo
9a916ed2cd change indentation from 2 spaces to 4, fix #5 2015-01-06 23:38:42 +01:00
jomo
adaddd7500 use threading for offline players 2014-08-07 02:49:34 +02:00
jomo
a48919c94c get rid of OfflinePlayer in forcefield 2014-08-07 02:21:44 +02:00
jomo
b1a3a92e49 apply file read/save helpers 2014-07-27 19:42:33 +02:00
jomo
df91adf7fd fix dicallignment 2014-07-19 02:41:44 +02:00
Dico
775bdc6205 Small fixes and tweaks 2014-07-19 01:51:29 +02:00
Dico
231a5b8322 Stuff added to helpers.py, forcefield updated to be a lot more efficient (simple change) 2014-07-19 01:39:08 +02:00
Dico
30d670bade minor changes. @Sheep: Take a look at the changes I made to helpers module and tell me if I'm stupid. 2014-07-18 03:45:28 +02:00
Dico
d2270ac263 Git messed around with my files, I updated it to use the uid() function in helpers.py now. 2014-07-18 02:50:14 +02:00
Dico
5373a1c4a4 wtf git adding random stuff to my files 2014-07-18 02:36:52 +02:00
Dico
835a7aa9fb Happy with this version/build. @Sheep: Don't fix my 'dicode'! 2014-07-18 02:27:24 +02:00
jomo
8db6085d63 use uid(player) helper method 2014-07-17 22:24:45 +02:00
jomo
a5e9fd348f make dicode DRY and more readable 2014-07-17 21:36:05 +02:00
Dico
8701578875 Rewrote velocity calculation. 2014-07-17 17:47:49 +02:00
Dico
15c06f011b Minor fix 2014-07-17 16:06:11 +02:00
Dico
372a831c82 Converted reports module to UUID and minor changes to forcefield module 2014-07-17 15:26:48 +02:00
Dico
2c1c6928a9 removing feature which doesnt work and is stupid 2014-07-17 05:40:54 +02:00
Dico
760d2a4d16 Cool stuff 2014-07-17 05:29:55 +02:00
Dico
f45547f808 Another minor change 2014-07-17 05:10:24 +02:00
Dico
9f6186ad15 Minor change 2014-07-17 04:54:44 +02:00
Dico
eab60c5502 No saving to files yet, but it definitely works well now. 2014-07-17 04:49:31 +02:00
Dico
f709533ade Updates! YAY! 2014-07-17 03:48:14 +02:00
Dico
0b94c02757 Working version 2014-07-17 01:13:22 +02:00
Dico
cda6984726 Fixing bugs & Cleaning up code. Seems to work well now! 2014-07-17 00:48:41 +02:00
jomo
6afc92102f debugging 2014-07-16 02:15:23 +02:00
jomo
306b479cad debugging 2014-07-16 02:11:52 +02:00
jomo
ad94e31d21 use better names, fix bugs 2014-07-16 02:04:02 +02:00
jomo
60a1210fe1 add readability spacing 2014-07-16 01:08:04 +02:00
jomo
9a0779d168 more code cleanup 2014-07-16 00:49:55 +02:00
jomo
d9b8252ab1 corrected s/idToPlayer/java_uuid/ 2014-07-16 00:34:49 +02:00
jomo
1430a454ed removed camelcase, added more coding style to readme 2014-07-16 00:33:43 +02:00
Dico
d2ec8b6d3f Sorry for spam 2014-07-15 19:36:50 +02:00
Dico
ad885d8707 Fixing movement bugs 2014-07-15 19:16:30 +02:00
Dico
2acd32f80e Think I finally fixed ALL forcefield bugs, command-side-wise 2014-07-15 18:49:36 +02:00
Dico
4b15a85ac8 Fixing moar bugs! 2014-07-15 14:19:45 +02:00
Dico
b84a4d837a Fixing bugs... 2014-07-15 14:07:48 +02:00
Dico
c4e206f44e Unfixing fix 2014-07-14 13:38:26 +02:00
Dico
cce3c028a4 Fixing bugs 2014-07-14 13:32:37 +02:00
Dico
ffae4e7d30 Added forcefield whitelist and hopefully fixed some bugs 2014-07-14 13:08:15 +02:00
Dico
89cb6d2d2e added forcefield module, will make whitelist option later 2014-07-14 02:40:00 +02:00