Commit Graph

26 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
00fd8e4f1e clean up check.py 2015-01-10 22:44:18 +01:00
jomo
f9c6df58c5 remove tab 2015-01-10 22:26:49 +01:00
PanFritz
4a3fcbd1d5 Changed index of results[] to fit array of tuples 2015-01-09 21:16:04 +01:00
PanFritz
22978a1700 Changed index of results[] to fit array of tuples 2015-01-09 21:11:26 +01:00
PanFritz
c205f3457e Debug log results 2015-01-09 21:06:08 +01:00
PanFritz
f42b1272b5 Progress 2015-01-09 21:04:02 +01:00
PanFritz
4ad849285c Testing converting results to string 2015-01-09 20:58:27 +01:00
PanFritz
1afd238799 More try/except 2015-01-09 20:51:29 +01:00
PanFritz
02bf56bf4a Added try except to str converion 2015-01-09 20:47:29 +01:00
PanFritz
2295350be6 Added try except 2015-01-09 20:45:40 +01:00
PanFritz
db940cdd6e possible fix 2015-01-09 20:40:10 +01:00
jomo
8eb0948a61 don't need quotes 2015-01-08 00:44:56 +01:00
jomo
f465a4caff nope #8 2015-01-08 00:40:18 +01:00
jomo
4f3cd5ba63 possible fix for #8 2015-01-08 00:38:00 +01:00
jomo
ae261d3026 fix error on offline players 2015-01-07 02:05:08 +01:00
jomo
8129bf5fd4 fix offline players 2015-01-07 02:01:00 +01:00
jomo
e7c4eba51f oops 2015-01-07 01:39:41 +01:00
jomo
ef770dd145 fix typo 2015-01-07 01:36:46 +01:00
jomo
60cc678470 show traceback on error 2015-01-07 01:35:26 +01:00
jomo
9230a048af improve check.py 2015-01-07 01:33:18 +01:00
jomo
7f97087ddb fix /check old usernames 2015-01-07 01:05:49 +01:00
jomo
9a916ed2cd change indentation from 2 spaces to 4, fix #5 2015-01-06 23:38:42 +01:00
jomo
3b2ad46ab9 fix /check output 2014-12-26 18:28:19 +01:00
jomo
6f16ed15ea small cleanup 2014-08-10 05:18:06 +02:00
Louis Vogt
ad4fb7a700 New check module (shows some statistics) 2014-08-09 02:15:36 +02:00