Possible remove fix.

This commit is contained in:
MattBDev 2016-04-21 14:57:47 -04:00
parent 3e4dbe0fbf
commit e57af63af4

View File

@ -142,7 +142,7 @@ public class FlagCmd extends SubCommand {
String value = StringMan.join(Arrays.copyOfRange(args, 2, args.length), " ");
Optional<? extends Collection> flag1 = plot.getFlag((Flag<? extends Collection<?>>) flag);
if (flag1.isPresent()) {
boolean o = flag1.get().remove(flag.parseValue(value));
boolean o = flag1.get().removeAll((Collection) flag.parseValue(value));
if (o) {
MainUtil.sendMessage(player, C.FLAG_REMOVED);
} else {