From bd16f92bec927b54100965698dbbb97eee21ad48 Mon Sep 17 00:00:00 2001 From: jojo Date: Sun, 30 Aug 2020 14:00:18 +0200 Subject: [PATCH] Fix BauCommand wrong name --- src/de/steamwar/bungeecore/commands/BauCommand.java | 4 ++-- src/de/steamwar/bungeecore/listeners/ChatListener.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index 834e1d5..e93c1b8 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -285,11 +285,11 @@ public class BauCommand { if(permission){ if(player != null) - BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§aDu kannst nun auf der Welt von §e" + player.getName() + "§a " + what); + BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§aDu kannst nun auf der Welt von §e" + p.getName() + "§a " + what); BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§aDer Spieler darf nun " + what); }else{ if(player != null) - BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu kannst nun nicht mehr auf der Welt von §e" + player.getName() + "§c " + what); + BungeeCore.send(player, BungeeCore.CHAT_PREFIX + "§cDu kannst nun nicht mehr auf der Welt von §e" + p.getName() + "§c " + what); BungeeCore.send(p, BungeeCore.CHAT_PREFIX + "§cDer Spieler darf nun nicht mehr " + what); } } diff --git a/src/de/steamwar/bungeecore/listeners/ChatListener.java b/src/de/steamwar/bungeecore/listeners/ChatListener.java index a21dbce..0883202 100644 --- a/src/de/steamwar/bungeecore/listeners/ChatListener.java +++ b/src/de/steamwar/bungeecore/listeners/ChatListener.java @@ -78,7 +78,7 @@ public class ChatListener extends BasicListener { private void lixfelAlert(ProxiedPlayer sender) { LIXFEL.send(sender); - final String l = "§eLixfel§8»§e" + sender.getName() + "§8» §c"; + final String l = "§eLixfel§8»§e" + sender.getName() + " §c"; BungeeCore.send(sender, ChatMessageType.ACTION_BAR, "§4§lTechnische Probleme?"); TaskScheduler scheduler = ProxyServer.getInstance().getScheduler(); scheduler.schedule(BungeeCore.get(), () -> BungeeCore.send(sender, l + "Du hast mich gerufen!"), 3, TimeUnit.SECONDS); @@ -90,7 +90,7 @@ public class ChatListener extends BasicListener { private void yoyonowAlert(ProxiedPlayer sender) { YOYONOW.send(sender); - final String l = "§eYoyoNow§8»§e" + sender.getName() + "§8» §c"; + final String l = "§eYoyoNow§8»§e" + sender.getName() + " §c"; BungeeCore.send(sender, ChatMessageType.ACTION_BAR, "§4§lTechnische Probleme?"); TaskScheduler scheduler = ProxyServer.getInstance().getScheduler(); scheduler.schedule(BungeeCore.get(), () -> BungeeCore.send(sender, l + "Du hast mich gerufen!"), 3, TimeUnit.SECONDS);