Show clans server name but don't allow teleport

This commit is contained in:
Sam 2018-08-21 23:57:11 +01:00 committed by Alexander Meech
parent 16b187d41a
commit 75a19de53c

View File

@ -692,7 +692,7 @@ public class FriendManager extends MiniDbClientPlugin<List<FriendStatus>>
if (online) if (online)
{ {
if (canJoin) if (canJoin || clans)
{ {
TextComponent server = new TextComponent(friend.ServerName); TextComponent server = new TextComponent(friend.ServerName);
server.setColor(ChatColor.DARK_GREEN); server.setColor(ChatColor.DARK_GREEN);
@ -708,7 +708,7 @@ public class FriendManager extends MiniDbClientPlugin<List<FriendStatus>>
} }
else else
{ {
TextComponent server = new TextComponent(clans ? "Clans" : "Private Staff Server"); TextComponent server = new TextComponent("Private Staff Server");
server.setColor(ChatColor.YELLOW); server.setColor(ChatColor.YELLOW);
message.addExtra(server); message.addExtra(server);
} }