Commit Graph

10 Commits

Author SHA1 Message Date
jomo
45008c0443 remove trailing whitespace, replace tabs with 4x space 2015-08-13 00:30:54 +02:00
Dico200
3daa191d8b Remove adminnotes noperm notification 2015-04-29 03:30:00 +02:00
Dico200
ab1087f210 Adminnotes fix continued message used for next note
Also code cleanup
2015-04-16 18:33:09 +02:00
PanFritz
7c30af86f2 Fix missing var 2015-04-16 12:40:30 +02:00
PanFritz
a37fb90b06 Tab indent fix 2015-04-16 12:36:16 +02:00
PanFritz
62059e613e Added perm check for Admin notes notification 2015-04-16 12:28:58 +02:00
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
Gap
3f9e647e25 Fixed typo + forgot variable 2015-01-14 18:35:47 +01:00
Gap
8b5b90513e Adds note module 2015-01-14 18:31:44 +01:00
Gap
7c6bfd7f12 Adds note module 2015-01-14 18:29:38 +01:00