summaryrefslogtreecommitdiff
path: root/cycle.py
AgeCommit message (Collapse)Author
2016-06-12Fix cycle for 1.10 (will break in 1.8 now..)Dico200
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-06change indentation from 2 spaces to 4, fix #5jomo
2014-07-27apply file read/save helpersjomo
2014-07-17use uid(player) helper methodjomo
2014-07-17using is_creative helperjomo
2014-07-16removed camelcase, added more coding style to readmejomo
2014-07-13using jython 2.7b2jomo
2014-07-06use cycle plugin in creative mode onlyjomo
2014-06-29fix typijomo
2014-06-29don't cycle when sneakingjomo
2014-06-29use strings for UUIDjomo
2014-06-29save file on list change, fix up/down naming, remove loggingjomo
2014-06-29save filejomo
2014-06-29fix indentationjomo
2014-06-29better logginjomo
2014-06-29shift items, then check for empty linejomo
2014-06-29shift items, then check for empty linejomo
2014-06-29move cycle plugin to new module; add featuresjomo