Commit Graph

30 Commits

Author SHA1 Message Date
NEMESIS13cz
f865c02bf5 Added support for hex strings 2015-08-11 03:35:23 +02:00
NEMESIS13cz
d683203aca Rewrote a lot, added a lot 2015-08-11 02:45:03 +02:00
NEMESIS13cz
69fe651dc1 Changed calc to run on a separate thread 2015-08-10 20:40:03 +02:00
Dico200
778fd0234e Fix /up
Tried a lot of shit but these 3 lines should do it.
2015-06-06 10:29:24 +02:00
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
PanFritz
60181bd657 Removed . from operators, remade line 17 2015-01-17 14:33:49 +01:00
PanFritz
9b4d73cfe2 Added check for . 2015-01-17 14:03:20 +01:00
PanFritz
1515777494 added . to maths operator to support floats 2015-01-16 23:40:14 +01:00
PanFritz
197ef515b9 Reverted changes 2015-01-13 13:12:00 +01:00
PanFritz
89c5c3e646 Added should_calc check and done expression var 2015-01-13 13:05:22 +01:00
PanFritz
f85a8e1bab removed should_calc condition from line 23, replaced break 2015-01-13 12:51:25 +01:00
PanFritz
daf325a6e4 testing 2015-01-13 12:48:12 +01:00
jomo
c69e8e80b2 420 = blazeit 2015-01-11 00:56:06 +01:00
jomo
9fa736691c only output numbers
we also support shifting (>>, <<), so the > and < characters are allowed which might lead to a bool type output
we don't want to show bool output
2015-01-11 00:00:39 +01:00
jomo
c6dd5ce4a9 add >, <, ~ and % operators to calc 2015-01-10 00:37:03 +01:00
jomo
8b2bf3bf72 delete duplicate chat message 2015-01-07 00:55:08 +01:00
jomo
9a916ed2cd change indentation from 2 spaces to 4, fix #5 2015-01-06 23:38:42 +01:00
jomo
3435e99432 Revert "Fixed calc when calling toggle"
This reverts commit 825acf330a.
2015-01-06 23:07:56 +01:00
PanFritz
825acf330a Fixed calc when calling toggle 2015-01-06 22:23:42 +01:00
jomo
8de52f9ab6 use name parameter for toggle() 2015-01-02 02:21:48 +01:00
jomo
11b08a20a1 /calc can only be used on sender 2015-01-02 02:21:11 +01:00
jomo
d92f98307f improve calc, make users savable 2015-01-02 02:17:17 +01:00
jomo
6ec7ad23ed stfu pylint 2015-01-02 01:39:43 +01:00
jomo
9110fc2eda more calc improvements 2015-01-02 01:28:39 +01:00
jomo
0842d92187 docs 2015-01-02 01:23:17 +01:00
jomo
3e00e52632 better color 2015-01-02 01:14:35 +01:00
jomo
0dcffd0ff3 improve calc.py 2015-01-02 01:07:10 +01:00
Gap
0448386fa7 Final modification for today 2015-01-01 23:33:54 +01:00
Gap
df24abbf62 Removed debugging shit 2015-01-01 22:48:25 +01:00
Gap
e92ed7e752 (+Pan) Added small chat calculator 2015-01-01 22:24:24 +01:00