mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fix #2009
This commit is contained in:
parent
8733dc6dab
commit
e54f964eca
@ -186,7 +186,17 @@ import java.util.*;
|
|||||||
if (flag1.isPresent()) {
|
if (flag1.isPresent()) {
|
||||||
boolean o = flag1.get().removeAll((Collection) flag.parseValue(value));
|
boolean o = flag1.get().removeAll((Collection) flag.parseValue(value));
|
||||||
if (o) {
|
if (o) {
|
||||||
MainUtil.sendMessage(player, C.FLAG_REMOVED);
|
if (flag1.get().isEmpty()) {
|
||||||
|
final boolean result = plot.removeFlag(flag);
|
||||||
|
if (result) {
|
||||||
|
MainUtil.sendMessage(player, C.FLAG_REMOVED);
|
||||||
|
} else {
|
||||||
|
MainUtil.sendMessage(player, C.FLAG_NOT_REMOVED);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
MainUtil.sendMessage(player, C.FLAG_REMOVED);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
MainUtil.sendMessage(player, C.FLAG_NOT_REMOVED);
|
MainUtil.sendMessage(player, C.FLAG_NOT_REMOVED);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user