summaryrefslogtreecommitdiff
path: root/adminnotes.py
AgeCommit message (Collapse)Author
2015-08-13remove trailing whitespace, replace tabs with 4x spacejomo
2015-04-29Remove adminnotes noperm notificationDico200
2015-04-16Adminnotes fix continued message used for next noteDico200
Also code cleanup
2015-04-16Fix missing varPanFritz
2015-04-16Tab indent fixPanFritz
2015-04-16Added perm check for Admin notes notificationPanFritz
2015-03-19Changed all CommandExecutor argumentsDico200
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-01-14Fixed typo + forgot variableGap
2015-01-14Adds note moduleGap
2015-01-14Adds note moduleGap