summaryrefslogtreecommitdiff
path: root/pmtoggle.py
AgeCommit message (Collapse)Author
2016-02-15Added more aliasesBuildTools
2016-02-15Added aliases and proper command descriptionBuildTools
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-03-15copy dict keys before iteratingjomo
python doesn't like changing dicts while iterating over that dict
2015-03-15Revert "remove redundant loop"jomo
This reverts commit cc50dc30bc7ad995495fa0cd518b03702c33df28.
2015-03-15debug pmutils player leave eventjomo
2015-03-15remove redundant loopjomo
2015-03-15fix all bukkit/uuid issues in pmtogglejomo
2015-03-15Fixed UUID problem in PmtoggleDico200
Thanks @jomo for pointing out
2015-03-15Add colon in pmtoggleDico200
2015-03-15Add check if chatevent is cancelled in pmtoggleDico200
2015-03-15Remove redundant try/except in Pmtoggle moduleDico200
2015-03-15pmtoggle works now, Fixes comments by JomoDico200
BTW: I didn't use retrieve_player as it gets an Offline player which makes it slower and I know the player is online. That's why I used Bukkit.getPlayer(juuid(uuidstring)). (line 40)
2015-03-15Added pmtoggle moduleDico200
pmtoggle adds /tm [player](togglemessage). When activated, any chat message you send will be sent as: /msg [player] [msg]