This commit is contained in:
Sauilitired 2019-01-22 18:51:13 +01:00
parent 8733dc6dab
commit e54f964eca
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678

View File

@ -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) {
if (flag1.get().isEmpty()) {
final boolean result = plot.removeFlag(flag);
if (result) {
MainUtil.sendMessage(player, C.FLAG_REMOVED); 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;