From 6bb73d438d7a7b3dd5e9cb2096c1e56c1b1598f5 Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Wed, 15 Jan 2020 12:17:22 +0100 Subject: [PATCH] Send proper error message when warp is unset. --- src/com/massivecraft/factions/entity/Warp.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/entity/Warp.java b/src/com/massivecraft/factions/entity/Warp.java index 6250d587..3db27f90 100644 --- a/src/com/massivecraft/factions/entity/Warp.java +++ b/src/com/massivecraft/factions/entity/Warp.java @@ -73,8 +73,9 @@ public class Warp extends EntityInternal implements Named public boolean verifyIsValid() { if (this.isValid()) return true; + Faction fac = this.getFaction(); this.detach(); - this.getFaction().msg("Your faction warp %s has been un-set since it is no longer in your territory.", this.getName()); + fac.msg("Your faction warp %s has been un-set since it is no longer in your territory.", this.getName()); return false; }