mirror of
https://github.com/taoneill/war.git
synced 2024-11-27 20:59:39 +01:00
Closes gh-53. No more client crash when using /team when not on a team. Whew.
This commit is contained in:
parent
37c9084e85
commit
109b513600
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user