Skip to content
Permalink
Browse files

fix remove commands

  • Loading branch information...
mcmonkey4eva committed Jan 4, 2019
1 parent ef63fc9 commit 6d8614e4670f742e1bfc07bb2932a712ae8c7fe0
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/main/java/org/mcmonkey/sentinel/commands/SentinelTargetCommands.java
@@ -106,7 +106,7 @@ public void removeTarget(CommandContext args, CommandSender sender, SentinelTrai
sender.sendMessage(SentinelCommand.prefixBad + "Bad regular expression!");
return;
}
if (targetLabel.addToList(sentinel.allTargets)) {
if (targetLabel.removeFromList(sentinel.allTargets)) {
sender.sendMessage(SentinelCommand.prefixGood + "No longer tracking that target!");
}
else {
@@ -151,7 +151,7 @@ public void removeIgnore(CommandContext args, CommandSender sender, SentinelTrai
sender.sendMessage(SentinelCommand.prefixBad + "Bad regular expression!");
return;
}
if (targetLabel.addToList(sentinel.allTargets)) {
if (targetLabel.removeFromList(sentinel.allIgnores)) {
sender.sendMessage(SentinelCommand.prefixGood + "No longer ignoring that target!");
}
else {
@@ -196,8 +196,8 @@ public void removeAvoid(CommandContext args, CommandSender sender, SentinelTrait
sender.sendMessage(SentinelCommand.prefixBad + "Bad regular expression!");
return;
}
if (targetLabel.addToList(sentinel.allAvoids)) {
sender.sendMessage(SentinelCommand.prefixGood + "No longer tracking that target!");
if (targetLabel.removeFromList(sentinel.allAvoids)) {
sender.sendMessage(SentinelCommand.prefixGood + "No longer avoiding that target!");
}
else {
sender.sendMessage(SentinelCommand.prefixBad + "Was already not tracking that target!");

0 comments on commit 6d8614e

Please sign in to comment.
You can’t perform that action at this time.