mirror of
https://github.com/taoneill/war.git
synced 2025-02-26 00:01:33 +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) {
|
public void performTeam(Player player, String[] arguments) {
|
||||||
Team playerTeam = this.getPlayerTeam(player.getName());
|
Team playerTeam = this.getPlayerTeam(player.getName());
|
||||||
if(!this.inAnyWarzone(player.getLocation()) && playerTeam != null) {
|
if(playerTeam == null) {
|
||||||
this.badMsg(player, "Usage: /team <message>. " +
|
this.badMsg(player, "Usage: /team <message>. " +
|
||||||
"Sends a message only to your teammates.");
|
"Sends a message only to your teammates.");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user