New conf.json option "homesTeleportCommandEnabled" which can be used to disable the /f home command, while possibly leaving faction homes enabled for the "homesTeleportToOnDeath" functionality
This commit is contained in:
parent
a9619a73c0
commit
b66b102333
@ -62,6 +62,7 @@ public class Conf {
|
|||||||
public static boolean homesEnabled = true;
|
public static boolean homesEnabled = true;
|
||||||
public static boolean homesMustBeInClaimedTerritory = true;
|
public static boolean homesMustBeInClaimedTerritory = true;
|
||||||
public static boolean homesTeleportToOnDeath = true;
|
public static boolean homesTeleportToOnDeath = true;
|
||||||
|
public static boolean homesTeleportCommandEnabled = true;
|
||||||
public static boolean homesTeleportAllowedFromEnemyTerritory = true;
|
public static boolean homesTeleportAllowedFromEnemyTerritory = true;
|
||||||
public static double homesTeleportAllowedEnemyDistance = 32;
|
public static double homesTeleportAllowedEnemyDistance = 32;
|
||||||
|
|
||||||
|
@ -29,6 +29,11 @@ public class FCommandHome extends FBaseCommand {
|
|||||||
me.sendMessage("Sorry, Faction homes are disabled on this server.");
|
me.sendMessage("Sorry, Faction homes are disabled on this server.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! Conf.homesTeleportCommandEnabled) {
|
||||||
|
me.sendMessage("Sorry, the ability to teleport to Faction homes is disabled on this server.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Faction myFaction = me.getFaction();
|
Faction myFaction = me.getFaction();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user