diff --git a/src/de/steamwar/bungeecore/commands/TeamCommand.java b/src/de/steamwar/bungeecore/commands/TeamCommand.java index 7701333..5b6485b 100644 --- a/src/de/steamwar/bungeecore/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/commands/TeamCommand.java @@ -19,7 +19,6 @@ package de.steamwar.bungeecore.commands; -import de.steamwar.bungeecore.BungeeCore; import de.steamwar.bungeecore.Message; import de.steamwar.bungeecore.inventory.SWItem; import de.steamwar.bungeecore.inventory.SWListInv; @@ -40,7 +39,6 @@ import java.time.Instant; import java.time.format.DateTimeFormatter; import java.util.*; -import static de.steamwar.bungeecore.Storage.sessions; import static de.steamwar.bungeecore.Storage.teamInvitations; public class TeamCommand extends BasicCommand { diff --git a/src/de/steamwar/bungeecore/commands/UnbanCommand.java b/src/de/steamwar/bungeecore/commands/UnbanCommand.java index 080a8d6..eff7bb4 100644 --- a/src/de/steamwar/bungeecore/commands/UnbanCommand.java +++ b/src/de/steamwar/bungeecore/commands/UnbanCommand.java @@ -19,7 +19,7 @@ package de.steamwar.bungeecore.commands; -import de.steamwar.bungeecore.BungeeCore; +import de.steamwar.bungeecore.Message; import de.steamwar.bungeecore.sql.SteamwarUser; import net.md_5.bungee.api.CommandSender; @@ -35,7 +35,7 @@ public class UnbanCommand extends BasicCommand { @Override public void execute(CommandSender sender, String[] args) { if(args.length < 1){ - BungeeCore.send(sender, BungeeCore.CHAT_PREFIX + "/unban [Spieler]"); + Message.send("UNBAN_SYNTAX", sender); return; } @@ -43,7 +43,7 @@ public class UnbanCommand extends BasicCommand { if(target == null) return; - BungeeCore.send(sender, BungeeCore.CHAT_PREFIX + "Du hast " + target.getUserName() + " entbannt."); + Message.send("UNBAN_UNBANNED", sender, target.getUserName()); target.ban(Timestamp.from(new Date().toInstant()), ""); } } diff --git a/src/de/steamwar/messages/BungeeCore.properties b/src/de/steamwar/messages/BungeeCore.properties index 48f45d1..58f2f3b 100644 --- a/src/de/steamwar/messages/BungeeCore.properties +++ b/src/de/steamwar/messages/BungeeCore.properties @@ -396,4 +396,8 @@ TEAM_COLOR_TITLE=§6Farbe wählen #TpCommand TP_SYNTAX=§8/§etp §8[§7Spieler§8] TP_SYNTAX_EVENT=§8/§etp §8[§7Spieler §8oder §7Team§8] -TP_NOT_FOUND=§cKonnte das angegebene Ziel nicht finden. \ No newline at end of file +TP_NOT_FOUND=§cKonnte das angegebene Ziel nicht finden. + +#UnbanCommand +UNBAN_SYNTAX=/unban [Spieler] +UNBAN_UNBANNED=Du hast {0} entbannt. \ No newline at end of file