mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-30 22:24:18 +01:00
Fix current server check - #216
This commit is contained in:
parent
8003dc50c4
commit
e506957d38
@ -99,7 +99,7 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
@Override
|
@Override
|
||||||
public void connect(ServerInfo target)
|
public void connect(ServerInfo target)
|
||||||
{
|
{
|
||||||
if ( getServer() == null || getServer().getInfo() == target )
|
if ( getServer() != null && getServer().getInfo() == target )
|
||||||
{
|
{
|
||||||
sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" );
|
sendMessage( ChatColor.RED + "Cannot connect to server you are already on!" );
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user