mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-04 09:10:17 +01:00
Possible remove fix.
This commit is contained in:
parent
3e4dbe0fbf
commit
e57af63af4
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user