diff --git a/src/de/steamwar/misslewars/commands/AcceptCommand.java b/src/de/steamwar/misslewars/commands/AcceptCommand.java index db34a53..60b4b05 100644 --- a/src/de/steamwar/misslewars/commands/AcceptCommand.java +++ b/src/de/steamwar/misslewars/commands/AcceptCommand.java @@ -50,7 +50,7 @@ public class AcceptCommand extends SWCommand { return new TypeValidator() { @Override public boolean validate(CommandSender commandSender, Player player, MessageSender messageSender) { - if (Config.isChallenge()) { + if (!Config.isChallenge()) { messageSender.send("§cDieser Command ist deaktiviert."); return false; } @@ -59,6 +59,11 @@ public class AcceptCommand extends SWCommand { }; } + @Override + protected void sendMessage(CommandSender sender, String message, Object[] args) { + sender.sendMessage(message); + } + private void message(MWTeam mwTeam, String s) { mwTeam.getPlayers().forEach(player -> player.sendMessage(s)); } diff --git a/src/de/steamwar/misslewars/commands/DeclineCommand.java b/src/de/steamwar/misslewars/commands/DeclineCommand.java index 0041788..f0df4aa 100644 --- a/src/de/steamwar/misslewars/commands/DeclineCommand.java +++ b/src/de/steamwar/misslewars/commands/DeclineCommand.java @@ -59,6 +59,11 @@ public class DeclineCommand extends SWCommand { }; } + @Override + protected void sendMessage(CommandSender sender, String message, Object[] args) { + sender.sendMessage(message); + } + private void message(MWTeam mwTeam, String s) { mwTeam.getPlayers().forEach(player -> player.sendMessage(s)); } diff --git a/src/de/steamwar/misslewars/commands/SpectateCommand.java b/src/de/steamwar/misslewars/commands/SpectateCommand.java index 1fdbc6b..f70fb06 100644 --- a/src/de/steamwar/misslewars/commands/SpectateCommand.java +++ b/src/de/steamwar/misslewars/commands/SpectateCommand.java @@ -61,4 +61,9 @@ public class SpectateCommand extends SWCommand { } }; } + + @Override + protected void sendMessage(CommandSender sender, String message, Object[] args) { + sender.sendMessage(message); + } }