Commit Graph

35 Commits

Author SHA1 Message Date
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
jomo
2246b9f5a8 fix mentio color codes 2015-02-09 21:31:31 +01:00
Gap
9a42172c4e A space :3 2015-01-14 18:48:41 +01:00
jomo
9a916ed2cd change indentation from 2 spaces to 4, fix #5 2015-01-06 23:38:42 +01:00
jomo
f9e09d0f86 small bugfixes 2014-08-07 22:41:02 +02:00
jomo
9aeea06ce9 revert to mob.chicken.plop, lavapop can be overheard easiliy 2014-08-07 01:26:28 +02:00
jomo
ba9f59c041 add note if no keywords 2014-08-07 01:25:20 +02:00
jomo
82e912d77e change highlight style. (underline hides parts of the next line) 2014-08-07 01:18:11 +02:00
jomo
9404f91e91 keyword must be IN the word, not exaclty the word 2014-08-07 01:17:26 +02:00
jomo
6e65173c4a don't be racist against players with uppercase characters in their name 2014-08-07 01:11:15 +02:00
jomo
43f8f95961 delete mentions if empty 2014-08-07 01:06:19 +02:00
jomo
a73b1da7ca rewrite big parts of mentio 2014-08-07 00:59:13 +02:00
jomo
044134f0c4 nicer string concatenating 2014-07-30 23:51:23 +02:00
jomo
dc6d4d5f4b remove try/except. fix code if it doesn't work ;) 2014-07-27 23:55:15 +02:00
jomo
f9d1d8a83c mentio readability, remove <> around mention highlight 2014-07-27 19:49:55 +02:00
jomo
b1a3a92e49 apply file read/save helpers 2014-07-27 19:42:33 +02:00
Louis Vogt
2a1c2f3919 Wrong receiver; new plop; no simplejson; still 1 bug 2014-07-26 14:19:31 +02:00
Louis Vogt
047c763a23 Enabled custom mentions (not tested yet) 2014-07-24 15:20:23 +02:00
jomo
8db6085d63 use uid(player) helper method 2014-07-17 22:24:45 +02:00
jomo
a61691bb1d added Pro Tip (tm) 2014-07-16 00:39:25 +02:00
jomo
1430a454ed removed camelcase, added more coding style to readme 2014-07-16 00:33:43 +02:00
Louis Vogt
9bbd6bba27 Added WIP custom words 2014-07-14 16:22:49 +02:00
jomo
7560bf1de3 fixed wrong event priority names 2014-06-21 14:34:00 +02:00
jomo
9a10123179 y u no work 2014-06-21 14:32:07 +02:00
jomo
9d4fc9f87b using list(x) instead of x.tolist() 2014-06-21 12:50:03 +02:00
jomo
7dcda40b1a only using recipient list when iterating 2014-06-21 12:47:25 +02:00
Louis Vogt
a6b22945d8 Converted set into list 2014-06-21 10:01:35 +02:00
jomo
68018d9c2a copying recipients before iterating 2014-06-21 01:18:00 +02:00
jomo
a63a28a2c4 catch everything 2014-06-21 01:12:27 +02:00
jomo
610e926a54 quick fix 2014-06-21 01:00:21 +02:00
jomo
151a8525d7 fix colors, highlight word, create sound 2014-06-21 00:52:16 +02:00
Louis Vogt
d4a14b4601 Fixed indention. Finally. 2014-06-20 22:16:17 +02:00
Louis Vogt
403348daa3 Fixed intentation+spelling mistake 2014-06-20 22:13:09 +02:00
Louis Vogt
6df5cab599 Added mention module 2014-06-20 22:04:39 +02:00
Louis Vogt
f23a6ee05a Added mention module 2014-06-20 21:56:30 +02:00