send message to player if target is current server

This commit is contained in:
weaondara 2013-04-04 18:44:46 +03:00
parent d900a5eae7
commit 6e9cdb2e20

View File

@ -123,6 +123,7 @@ public final class UserConnection implements ProxiedPlayer
final ServerInfo target = event.getTarget(); // Update in case the event changed target final ServerInfo target = event.getTarget(); // Update in case the event changed target
if ( getServer() != null && getServer().getInfo() == target ) if ( getServer() != null && getServer().getInfo() == target )
{ {
sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" );
return; return;
} }
new Bootstrap() new Bootstrap()