jomo
45008c0443
remove trailing whitespace, replace tabs with 4x space
2015-08-13 00:30:54 +02:00
NEMESIS13cz
66ab0c1468
Fixed order of operations
2015-08-12 20:34:20 +02:00
NEMESIS13cz
11cbd08480
Changed /pyeval to only work for certain people
2015-08-12 20:22:41 +02:00
Dico200
40137cad4c
This /up fix SHOULD WORK!
2015-06-06 12:13:18 +02:00
Dico200
35b1fe3a0f
Well //up is gone again. Great. Undoing..
2015-06-06 10:56:31 +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
1b5f07f7aa
Fix new attempt... :D
2015-06-03 01:26:27 +02:00
Dico200
dbeb0d53bb
Another fix attempt for /up
2015-06-03 01:24:45 +02:00
Dico200
0ea2760bf4
Revert "why did //up disappear? Testing on dev server."
...
This reverts commit a6f5156ef4 .
2015-06-03 01:18:18 +02:00
Dico200
a6f5156ef4
why did //up disappear? Testing on dev server.
2015-06-03 01:16:14 +02:00
Dico200
3cbb8dc9bd
Prevent /up griefing, add /ackey, minor tweaks
...
Dunno why its posting 'changes' in main.py tho
2015-06-03 01:09:07 +02:00
Dico200
4599ae89e9
Fix this thing so that only 1 player has to sleep
...
untested
2015-05-14 03:32:34 +02:00
Dico200
59816b58e2
Almost complete redo of blockplacemods, small fixes
...
I've redone most of blockplacemods its code. It is now MUCH easier to
expand in the future and I think the code is more elegant and stuff. It
all works the same as before, except the command is now /toggle
<setting>
I've merged the setting for /autotakewater and /autofillcauldron into
one setting named cauldron.
2015-05-14 02:16:33 +02:00
Dico200
9f4d096a57
Cleanup misc.py and small fix, also in damnspam
2015-05-13 21:37:53 +02:00
Dico200
88e0a298b5
Added a few untested things to misc.py
2015-05-13 21:06:26 +02:00
Dico200
1afaec2a08
Small misc cleanup
2015-04-29 03:27:52 +02:00
Dico200
1cac4c6ed5
Added /tempadd command: temporary group membership
...
Just a simpler way of writing /pex user <user> group add <group> *
604800
2015-04-28 00:08:33 +02:00
Dico200
2c1292015b
Made lava not break redstone components in Creative
...
I tested thoroughly. I don't see how this will break other parts of the
plugin either.
2015-04-14 21:20:55 +02:00
Dico200
055a9073f4
Hotfix in /sudo
2015-04-13 18:38:16 +02:00
Dico200
211fb08265
Removed color support for /me for players w/o perms
2015-04-13 18:16:00 +02:00
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