From 6e9cdb2e20c8d4138f08e9e4596dbb3f6cc54a75 Mon Sep 17 00:00:00 2001 From: weaondara Date: Thu, 4 Apr 2013 18:44:46 +0300 Subject: [PATCH] send message to player if target is current server --- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 68e31b76..fdc6ee7f 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -123,6 +123,7 @@ public final class UserConnection implements ProxiedPlayer final ServerInfo target = event.getTarget(); // Update in case the event changed target if ( getServer() != null && getServer().getInfo() == target ) { + sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" ); return; } new Bootstrap()