Commit Graph

56 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
Dico200
40fa9c0692 simplified /me in misc.py
Replaced online user iteration with broadcast method
2015-03-19 21:51:13 +01:00
Dico200
9476a1b0b7 Remove redundant try/catch 2015-03-18 22:26:54 +01:00
Dico200
194958f034 me cmd appearance hotfix (made new cmd) fixes #15 2015-03-18 22:25:58 +01:00
Dico200
55ac6c0977 Change /sudo command fixes #14 2015-03-18 21:09:49 +01:00
jomo
65352519c7 link to info, not /faq command on first join 2015-01-09 01:35:40 +01:00
jomo
f579759e60 better comments in misc.py 2015-01-06 23:59:36 +01:00
jomo
9a916ed2cd change indentation from 2 spaces to 4, fix #5 2015-01-06 23:38:42 +01:00
jomo
d8bd90544b clean up comments 2015-01-06 21:32:40 +01:00
jomo
6310633ebb disable spectator teleportation 2015-01-06 21:29:00 +01:00
Derrick Lim
967bda67da /gm finished for now, will remain commented 2014-12-27 00:42:01 +08:00
Derrick Lim
e4ab382d98 Squashed some /gm bugs
Thnx sheep
2014-12-27 00:17:53 +08:00
Derrick Lim
0677f8460d Added /gm - commented for now 2014-12-26 18:48:30 +08:00
jomo
363f5cddda remove WTF methods from player welcome 2014-08-07 02:19:53 +02:00
jomo
b0aa83104c catch all exceptions in pyeval 2014-07-27 23:29:55 +02:00
jomo
2057c81918 remove test code 2014-07-23 00:00:18 +02:00
jomo
7d356f9eb0 trying stuff 2014-07-22 00:46:00 +02:00
jomo
7f74482fa4 fix plugin_header 2014-07-21 02:31:46 +02:00
jomo
3da64f301d add /modules command
lists all modules.
green if loaded, red otherwise
2014-07-21 02:24:43 +02:00
jomo
befd5a1721 nicer pyeval output 2014-07-21 02:06:15 +02:00
jomo
8db6085d63 use uid(player) helper method 2014-07-17 22:24:45 +02:00
jomo
ebf8a22bae using is_creative helper 2014-07-17 22:13:49 +02:00
jomo
a5e09e3254 show return type in pyeval 2014-07-17 01:16:37 +02:00
jomo
9a0779d168 more code cleanup 2014-07-16 00:49:55 +02:00
jomo
1430a454ed removed camelcase, added more coding style to readme 2014-07-16 00:33:43 +02:00
jomo
fca2e7e1b2 add mising import 2014-07-14 01:17:51 +02:00
jomo
94932ce0bf creating shared dict 2014-07-14 01:16:40 +02:00
jomo
991030b326 getting the right name in pluginversions 2014-07-14 01:00:30 +02:00
jomo
8ee6d0f40a getting the right name in pluginversions 2014-07-14 01:00:06 +02:00
jomo
c34c533dca add /echo 2014-07-09 00:18:26 +02:00
jomo
4c893342f9 removed unused commands from welcome message 2014-07-08 19:55:54 +02:00
jomo
4ef56eab97 remove text-only commands, use commands.yml aliases 2014-07-05 21:28:26 +02:00
jomo
52f5f92e73 add 0.4s delay to shearing 2014-07-05 21:12:27 +02:00
jomo
ab6e2a0c27 175:6 is no longer breaking clients 2014-07-05 21:05:47 +02:00
jomo
da51c6f5fc tell people to use website 2014-07-05 21:05:18 +02:00
jomo
afdda4e564 fix shearsheep 2014-07-02 00:27:50 +02:00
jomo
dd8fe14858 move cycle plugin to new module; add features 2014-06-29 15:18:25 +02:00
jomo
91e826aec0 Merge branch 'dev' of bitbucket.org:redstonesheep/redstoner-utils into dev 2014-06-29 09:19:43 +02:00
jomo
3697e19d79 use list(x) instead of x.tolist() 2014-06-29 09:19:33 +02:00
shillingp
c1cf6b5b06 Complete inventory cycle 2014-06-27 15:16:03 +00:00
shillingp
23fb4d6644 misc.py edited online with Bitbucket 2014-06-23 23:09:55 +00:00
shillingp
53c9118755 getInventory not getContents 2014-06-23 23:07:25 +00:00
shillingp
794ff39b50 changed inventory event to player event 2014-06-23 22:59:59 +00:00
shillingp
09f2bc6e5e Added inventory cycle function 2014-06-23 22:52:04 +00:00
jomo
cf36f6b525 adjust rules 2014-06-23 01:18:15 +02:00
jomo
5a5092ed32 fix rule alignment; change color 2014-06-23 01:02:09 +02:00
jomo
a391165995 awesome new feature 2014-06-22 02:11:43 +02:00
shillingp
6d63b37d68 spelling mistakes 2014-06-16 22:09:20 +00:00
shillingp
26c5f4d1de Messages altered and colored 2014-06-16 22:03:44 +00:00
shillingp
9752caece4 Fixed fail if statement 2014-06-16 21:53:12 +00:00