Closes gh-53. No more client crash when using /team when not on a team. Whew.

This commit is contained in:
taoneill 2011-02-15 14:08:02 -05:00
parent 37c9084e85
commit 109b513600

View File

@ -861,7 +861,7 @@ public class War extends JavaPlugin {
public void performTeam(Player player, String[] arguments) {
Team playerTeam = this.getPlayerTeam(player.getName());
if(!this.inAnyWarzone(player.getLocation()) && playerTeam != null) {
if(playerTeam == null) {
this.badMsg(player, "Usage: /team <message>. " +
"Sends a message only to your teammates.");
} else {