Commit Graph

530 Commits

Author SHA1 Message Date
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
0ef318d6b9 Removed a lot of shit from basecommands.py 2015-05-13 21:39:25 +02:00
Dico200
9f4d096a57 Cleanup misc.py and small fix, also in damnspam 2015-05-13 21:37:53 +02:00
Dico200
230e427f04 Fix BlockBreakEvent being called on lever switch 2015-05-13 21:37:23 +02:00
Dico200
88e0a298b5 Added a few untested things to misc.py 2015-05-13 21:06:26 +02:00
Dico200
6865e2c3b9 Revert "show network AS in /check"
This reverts commit 181c6ccfeb.
2015-05-05 16:50:55 +02:00
Dico200
eaf0f41746 Revert "use https for ipinfo.io"
This reverts commit 62569c7361.
2015-05-05 16:50:48 +02:00
Dico200
37dc80305f More blockplacemods
Trying to make it place an item (in this case 1 piece of redstone dust)
in a furnace. I know that it creates the ItemStack correctly, I know
that in this case .getInventory() returns an instance of
FurnaceInventory and I know that .update() is returning True meaning it
updated the blockstate successfully. However, the item is not appearing
in the furnace. Any idea why?
2015-05-01 21:46:24 +02:00
Dico200
ad9de19d5d right clicking empty cauldron fills it 2015-04-29 17:12:39 +02:00
Dico200
884e0a3491 Added perm check to interactevent im blockplacemods
fixes #19
2015-04-29 14:41:48 +02:00
Dico200
4e1398e514 Disable loginsecurity module 2015-04-29 03:31:01 +02:00
Dico200
3daa191d8b Remove adminnotes noperm notification 2015-04-29 03:30:00 +02:00
Dico200
1afaec2a08 Small misc cleanup 2015-04-29 03:27:52 +02:00
Dico200
c451b2247b Added blockplacemods module
Adds a few nifty features with per player customization:
- Placing a slab automatically turns it upside-down
- Placing a cauldron automatically fills it
- Right clicking a cauldron with empty hand or redstone dust lowers
water level
2015-04-29 03:27:37 +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
jomo
62569c7361 use https for ipinfo.io 2015-04-20 21:02:07 +02:00
jomo
181c6ccfeb show network AS in /check 2015-04-20 20:39:00 +02:00
Dico200
487375dd07 Added loginsecurity module
Added to make an easily adjustible version of LoginSecurity.
LoginSecurity does not (seem to) support name changes since it retrieves
the UUID used from a byte[] of "OfflinePlayer:<username>" which means
the UUID changes when a player changes their name. This should fix
/rmpass. It uses BCrypt. I'll test this on the dev server (hoping bcrypt
is installed)
2015-04-17 00:10:21 +02:00
Dico200
ab1087f210 Adminnotes fix continued message used for next note
Also code cleanup
2015-04-16 18:33:09 +02:00
PanFritz
7c30af86f2 Fix missing var 2015-04-16 12:40:30 +02:00
PanFritz
a37fb90b06 Tab indent fix 2015-04-16 12:36:16 +02:00
PanFritz
62059e613e Added perm check for Admin notes notification 2015-04-16 12:28:58 +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
PanFritz
f45da9bf42 Fix missing () 2015-04-13 20:57:25 +02:00
Dico200
055a9073f4 Hotfix in /sudo 2015-04-13 18:38:16 +02:00
Dico200
85df528fc3 Added /rp list as alias for /rp open 2015-04-13 18:38:03 +02:00
Dico200
2c063d638f Tweaks in imout, primarily making player vanish 2015-04-13 18:16:40 +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
9a0767676c Didn't upload this for some reason 2015-04-09 01:39:41 +02:00
Dico200
58eea64148 I love less-than-one line list creators! 2015-04-09 01:38:58 +02:00
Dico200
812e2c3aaf Changed version to 3.1.0 :D no reason 2015-04-09 01:25:52 +02:00
Dico200
9ddd523c58 Added player configurable chatgroup keys
The keys are stored in chatgroup_keys.json
2015-04-09 01:23:00 +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
f7abc20ca1 Don't even bother. 2015-04-03 02:04:25 +02:00
Dico200
de43b0d0db Added (sub/main)command, removed abot error check
@command is untested.
2015-04-03 02:01:57 +02:00
Dico200
661e25dc67 Some tweaks and updates 2015-03-29 12:48:32 +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
4cfa3a598f Tiny tweaks in basecommands.py 2015-03-26 16:48:54 +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
d160bbd91a Revert "Moved simplecommand to its own module"
This reverts commit 669c2d0eb8.
2015-03-24 23:45:23 +01:00
Dico200
669c2d0eb8 Moved simplecommand to its own module
The module is named simplecommand.py (wow, didn't expect that!)

And I also cleaned it up a little bit, and tried to make clear how the
fuck it works. This shit is weird.
2015-03-23 23:24:10 +01:00
Dico200
7b8242697a CommandManager works! (Renamed to simplecommand)
See at the bottom of helpers.py!
I'm quite excited for this addition <3
2015-03-23 23:03:11 +01:00