summaryrefslogtreecommitdiff
path: root/friends.py
AgeCommit message (Collapse)Author
2016-05-30Friends fixDico200
2016-05-30Friends hotfix... Did I really write this code?Dico200
2016-05-28Enabled friends module, added friends check in imbusy, fixed small mistakesimbusy-reply-patchDico200
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-08-07forgot to import threadjomo
2014-08-07more threading / offlineplayer fixesjomo
2014-08-07get rid of offlineplayer in friendsjomo
2014-08-07remove WTF methods from player welcomejomo
2014-07-31FIX THIS BEFORE MERGING!jomo
2014-07-27better name + docs for played_before (renamed to known_player)jomo
2014-07-27add path to save/open json filejomo
2014-07-27add default to open_json_filejomo
2014-07-24clean up friends.pyjomo
2014-07-23Minor changeDico
2014-07-23Removed useless linesDico
2014-07-23Didn't add module last time...?Dico