Add a config setting to allow creative mode players to override inventory setting.

This commit is contained in:
Wizjany
2013-01-19 19:06:55 -05:00
parent 89bdd8d9ba
commit 6abd48ab08
6 changed files with 23 additions and 2 deletions

View File

@ -345,7 +345,8 @@ public class WorldEdit {
// Have the session use inventory if it's enabled and the player
// doesn't have an override
session.setUseInventory(config.useInventory
&& !(config.useInventoryOverride
&& !((config.useInventoryOverride ||
(config.useInventoryCreativeOverride && player.hasCreativeMode()))
&& player.hasPermission("worldedit.inventory.unrestricted")));
}