mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +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), " ");
|
String value = StringMan.join(Arrays.copyOfRange(args, 2, args.length), " ");
|
||||||
Optional<? extends Collection> flag1 = plot.getFlag((Flag<? extends Collection<?>>) flag);
|
Optional<? extends Collection> flag1 = plot.getFlag((Flag<? extends Collection<?>>) flag);
|
||||||
if (flag1.isPresent()) {
|
if (flag1.isPresent()) {
|
||||||
boolean o = flag1.get().remove(flag.parseValue(value));
|
boolean o = flag1.get().removeAll((Collection) flag.parseValue(value));
|
||||||
if (o) {
|
if (o) {
|
||||||
MainUtil.sendMessage(player, C.FLAG_REMOVED);
|
MainUtil.sendMessage(player, C.FLAG_REMOVED);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user