Allow users to connect
This commit is contained in:
parent
a564d4c7f1
commit
55ec76beee
@ -98,7 +98,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