mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 21:15:57 +01:00
Handle null flag values in the flag set command correctly.
This commit is contained in:
parent
bd0917d34b
commit
e47c563ced
@ -443,7 +443,9 @@ public void flag(CommandContext args, CommandSender sender) throws CommandExcept
|
||||
RegionPermissionModel permModel = getPermissionModel(sender);
|
||||
|
||||
// Add color codes
|
||||
if (value != null) {
|
||||
value = CommandUtils.replaceColorMacros(value);
|
||||
}
|
||||
|
||||
// Lookup the existing region
|
||||
RegionManager manager = checkRegionManager(plugin, world);
|
||||
|
Loading…
Reference in New Issue
Block a user