Fixed Alts NullPointer

Setup base for Members Upgrade
This commit is contained in:
Driftay
2019-05-19 19:01:59 -04:00
parent 06e7eaf572
commit 3c5d8ee050
4 changed files with 14 additions and 1 deletions

View File

@@ -21,6 +21,9 @@ public class CmdStealth extends FCommand {
}
public void perform() {
Faction faction = fme.getFaction();
if (faction != null && !faction.getId().equalsIgnoreCase("0") && !faction.getId().equalsIgnoreCase("none") && !faction.getId().equalsIgnoreCase("safezone") && !faction.getId().equalsIgnoreCase("warzone")) {
fme.setStealth(!fme.isStealthEnabled());