Don't allow warping to unclaimed territory. Fix #37
This commit is contained in:
parent
cd3b846ae1
commit
98be34e20b
@ -53,6 +53,9 @@ public class CmdFactionsWarpGo extends FactionsCommandWarp
|
||||
Warp warp = TypeWarp.get(faction).read(this.argAt(0), sender);
|
||||
String warpDesc = Txt.parse("<h>%s <i>in <reset>%s<i>.", warp.getName(), faction.describeTo(msender, false));
|
||||
|
||||
// Must be valid
|
||||
if (!warp.verifyIsValid()) return;
|
||||
|
||||
// Any and MPerm
|
||||
if ( ! MPerm.getPermWarp().has(msender, faction, true)) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user