mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-05 20:36:42 +00:00
Add a config setting to allow creative mode players to override inventory setting.
This commit is contained in:
@ -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")));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user