Commit Graph

13 Commits

Author SHA1 Message Date
khonkhortisan c473fbb6c1 //set appears to respect area ownership
hard depend on commonlib to soft depend on areas
2014-04-19 17:15:25 -07:00
khonkhortisan 11647fca93 preemtive optimization - caching a per-node player permission check
before the function actually works
2014-04-18 18:30:26 -07:00
khonkhortisan bde3281508 copy .privs with .can_edit_volume for a function wrapper
as well as a conditional for good measure.
2014-04-18 18:21:08 -07:00
khonkhortisan 098051d25e Respond correctly if .can_edit_volume is called outside of .privs
I can't think of why that would happen.
2014-04-18 17:02:36 -07:00
khonkhortisan 88e4c635aa Run worldedit.privs inside and outside of worldedit.can_edit_volume
Never run worldedit.can_edit_volume without worldedit.privs surrounding
it
2014-04-18 16:52:34 -07:00
khonkhortisan 4b80eb82cc Allow using worldedit.privs() in an if statement
or with a function argument.
2014-04-18 13:23:13 -07:00
khonkhortisan 4475909a97 Disable node inspection on use if it was enabled before the worldedit privilege was removed from a player to prevent spamming. 2014-04-18 13:06:55 -07:00
khonkhortisan 7083a26e72 Second function wrapper 2014-04-17 12:35:15 -07:00
khonkhortisan 1d71e602b8 add a second depend 2014-04-17 10:45:24 -07:00
khonkhortisan df159efcee Check privs not just during registration of chatcommands
Creative mode could change while the server is running.
2014-04-17 10:37:24 -07:00
khonkhortisan ae5a7376c0 Require the "server" privilege for commands that write to files (but not
for reads)
Inconsistently require the "worldedit" privilege, based on creative mode
and the existence of a land ownership mod.
2014-04-16 18:54:16 -07:00
khonkhortisan f2436db108 Use old behaviour when not in creative mode. 2014-04-16 14:01:40 -07:00
khonkhortisan 12424c584f Initial pseudocode 2014-04-16 13:35:46 -07:00