mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-15 05:17:56 +00:00
Possible remove fix.
This commit is contained in:
parent
3e4dbe0fbf
commit
e57af63af4
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue