Commit Graph

15 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
fb60c0c178 allow to reset motd 2014-07-24 02:31:34 +02:00
jomo
a5eb215b5b use &-colors for motd on first load 2014-07-21 02:35:06 +02:00
jomo
a9e0c621ec remove test line 2014-07-21 02:34:36 +02:00
jomo
b295f12d56 raise test error 2014-07-21 02:28:39 +02:00
jomo
70668f0210 fix broken broadcast 2014-07-20 17:53:19 +02:00
jomo
9a0779d168 more code cleanup 2014-07-16 00:49:55 +02:00
jomo
1430a454ed removed camelcase, added more coding style to readme 2014-07-16 00:33:43 +02:00
jomo
16217e1251 fix double plugin header 2014-07-09 00:24:55 +02:00
jomo
6534922886 allow newlines 2014-07-04 02:04:59 +02:00
jomo
991673779b fix broadcast 2014-07-04 02:00:04 +02:00
jomo
d07883d0c4 fix plugin title 2014-07-04 01:54:23 +02:00
jomo
0a309f0f60 fix plugin title 2014-07-04 01:53:33 +02:00
jomo
4791f84356 add motd.py 2014-07-04 01:50:36 +02:00