From 915c8d1d25b1e47e8b3eafebde3b8040e07c9b8c Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Fri, 30 Oct 2020 22:16:55 +0100 Subject: [PATCH] Fixing... --- src/de/steamwar/bungeecore/listeners/ConnectionListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java index bc615690..0deb4687 100644 --- a/src/de/steamwar/bungeecore/listeners/ConnectionListener.java +++ b/src/de/steamwar/bungeecore/listeners/ConnectionListener.java @@ -61,7 +61,6 @@ public class ConnectionListener extends BasicListener { SteamwarUser user = SteamwarUser.get(player.getUniqueId()); player.removeGroups("Admin", "team"); - player.setDisplayName(player.getName()); if(user.getUserGroup().isAdminGroup()) player.addGroups(ADMIN_GROUP); @@ -76,6 +75,8 @@ public class ConnectionListener extends BasicListener { player.setPermission(YOUTUBER_MODS, true); player.setDisplayName(user.getUserGroup().getColorCode() + user.getUserGroup().name() + " " + player.getName() + "§r"); player.setPermission("bungeecore.group." + user.getUserGroup().name().toLowerCase(), true); + }else { + player.setDisplayName(player.getName()); } for(Subserver subserver : Subserver.getServerList()){