Dico200
ce3b911b35
/pluginversions is broken, Fixed mail send colours.
...
I attempted to fix /pluginversions but ended up just commenting it out.
The problem is in retrieving the plugins where instead of object type
Plugin it returns "array.array"? I tried a whole bunch of things but I
didn't succeed to make it work.
2015-04-10 23:55:30 +02:00
Dico200
b232cbf5cf
Small fix
2015-04-10 00:39:09 +02:00
Dico200
f3833a6733
Untested change to add pyeval possibility to args
...
so you do like, for example:
/pex user EVAL:server.getOfflinePlayer("Dico200").getUniqueId()
this could also be used in chat. I know its pretty useless but useful in
some cases.
2015-04-10 00:37:51 +02:00
Dico200
d85b96f875
Clean up misc.py, add space support for cg key
2015-04-10 00:13:06 +02:00
Dico200
34b59e61fe
Revert "Revert "Change to /modules... trying to make @command work.""
...
This reverts commit da756d69cc .
2015-04-08 22:34:44 +02:00
Dico200
da756d69cc
Revert "Change to /modules... trying to make @command work."
...
This reverts commit 201c766119 .
2015-04-08 22:32:54 +02:00
Dico200
201c766119
Change to /modules... trying to make @command work.
...
@command throws an error when it tries to access current_subs, which
supposedly didn't exist. current_subs stores all subcommands found when
defining the method which @command was added to. (These SHOULD be called
first)
2015-04-08 22:32:14 +02:00
Dico200
6590a8d30a
Added cmd check to ABOT, commented out advancedcmd
...
advancedcmd doens't work atm, apparently
function.func_code is a thing but adding co_consts isn't an attribute of
that.
Tested abot, seems to work well.
2015-03-28 16:39:09 +01:00
Dico200
75823ed042
Added basecommands.py
...
Contains @simplecommand and @basecommand
Slightly alterred simplecommand, made both display the command's
required permission when displaying help if the sender has the
permission "utils.showpermission".
Also a small tweak in misc.py's join listener.
2015-03-26 16:44:21 +01:00
Dico200
9855f62e7b
Replaced /pyeval too, untested atm.
2015-03-25 00:55:13 +01:00
Dico200
75c9a86ba3
Replaced /sudo and /me with @simplecommand hook
...
Also improved simplecommand a little bit.
Don't ask me why it doesn't work in its own file as I have no clue, it
wasn't tracing the errors.
2015-03-25 00:38:56 +01: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
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