Commit Graph
18 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 b1a3a92e49 apply file read/save helpers 2014-07-27 19:42:33 +02:00
jomo 8db6085d63 use uid(player) helper method 2014-07-17 22:24:45 +02:00
jomo ebf8a22bae using is_creative helper 2014-07-17 22:13:49 +02:00
jomo 1430a454ed removed camelcase, added more coding style to readme 2014-07-16 00:33:43 +02:00
jomo 7981591fb7 using jython 2.7b2 2014-07-13 17:10:14 +02:00
jomo 1017e64095 use cycle plugin in creative mode only 2014-07-06 20:49:11 +02:00
jomo 15ed89098d fix typi 2014-06-29 18:28:13 +02:00
jomo 327772b03b don't cycle when sneaking 2014-06-29 18:26:02 +02:00
jomo f141f392f8 use strings for UUID 2014-06-29 16:25:17 +02:00
jomo 25dce528c4 save file on list change, fix up/down naming, remove logging 2014-06-29 16:21:59 +02:00
jomo f45c1c10dc save file 2014-06-29 16:15:42 +02:00
jomo 24bd4d58c2 fix indentation 2014-06-29 15:38:51 +02:00
jomo 5ed5753b38 better loggin 2014-06-29 15:37:45 +02:00
jomo 4a2cbf7f1f shift items, then check for empty line 2014-06-29 15:33:27 +02:00
jomo 04ab9e93cb shift items, then check for empty line 2014-06-29 15:21:16 +02:00
jomo dd8fe14858 move cycle plugin to new module; add features 2014-06-29 15:18:25 +02:00