mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-25 18:17:38 +01:00
Check players have a server before sending
This commit is contained in:
parent
13f394b9a7
commit
39009d8c96
@ -60,7 +60,7 @@ public class CommandSend extends Command
|
||||
|
||||
private void summon(ProxiedPlayer player, ServerInfo target, CommandSender sender)
|
||||
{
|
||||
if ( player.getServer().getInfo() != target )
|
||||
if ( player.getServer() != null && player.getServer().getInfo() != target )
|
||||
{
|
||||
player.connect( target );
|
||||
player.sendMessage( ChatColor.GOLD + "Summoned to " + target.getName() + " by " + sender.getName() );
|
||||
|
Loading…
Reference in New Issue
Block a user