1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-11-18 00:18:13 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
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