Handle null flag values in the flag set command correctly.

This commit is contained in:
sk89q 2014-08-22 11:09:09 -07:00
parent bd0917d34b
commit e47c563ced

View File

@ -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);