From 39009d8c962d63f0c9a34df82ade4ad550c55e0d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 23 Mar 2013 13:45:22 +1100 Subject: [PATCH] Check players have a server before sending --- proxy/src/main/java/net/md_5/bungee/command/CommandSend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java b/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java index d772f686..63cf244c 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java +++ b/proxy/src/main/java/net/md_5/bungee/command/CommandSend.java @@ -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() );