mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-08-08 21:23:03 +02:00
Don't allow users to connect to the server they are already on.
This commit is contained in:
parent
0984b8703f
commit
a3dbdae3df
|
@ -36,6 +36,9 @@ public class CommandServer extends Command
|
|||
if (!servers.contains(server))
|
||||
{
|
||||
con.sendMessage(ChatColor.RED + "The specified server does not exist");
|
||||
} else if (args[0].equals(con.getServer()))
|
||||
{
|
||||
con.sendMessage(ChatColor.RED + "You are already on this server.");
|
||||
} else
|
||||
{
|
||||
con.connect(server);
|
||||
|
|
Loading…
Reference in New Issue
Block a user