Send proper error message when warp is unset.
This commit is contained in:
parent
56cfc3fddb
commit
6bb73d438d
@ -73,8 +73,9 @@ public class Warp extends EntityInternal<Warp> implements Named
|
|||||||
public boolean verifyIsValid()
|
public boolean verifyIsValid()
|
||||||
{
|
{
|
||||||
if (this.isValid()) return true;
|
if (this.isValid()) return true;
|
||||||
|
Faction fac = this.getFaction();
|
||||||
this.detach();
|
this.detach();
|
||||||
this.getFaction().msg("<b>Your faction warp <h>%s <b>has been un-set since it is no longer in your territory.", this.getName());
|
fac.msg("<b>Your faction warp <h>%s <b>has been un-set since it is no longer in your territory.", this.getName());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user