mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-23 18:55:25 +01:00
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;
|
||||||
|
|
||||||
|
@ -30,6 +30,11 @@ public class FCommandHome extends FBaseCommand {
|
|||||||
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();
|
||||||
|
|
||||||
if ( ! myFaction.hasHome()) {
|
if ( ! myFaction.hasHome()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user