mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-27 16:02:32 +00:00
Add the ability to disable teleport safety. Requested by a few people - teleport safety isn't always a good thing for some servers. Request is cancelled if not safe.
This commit is contained in:
parent
b70b58660f
commit
7d8d9d8959
25 changed files with 51 additions and 2 deletions
|
@ -95,6 +95,19 @@ public class Settings implements net.ess3.api.ISettings
|
|||
return chatRadius;
|
||||
}
|
||||
|
||||
private boolean teleportSafety;
|
||||
|
||||
public boolean _isTeleportSafetyEnabled()
|
||||
{
|
||||
return config.getBoolean("teleport-safety", true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTeleportSafetyEnabled()
|
||||
{
|
||||
return teleportSafety;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getTeleportDelay()
|
||||
{
|
||||
|
@ -487,6 +500,7 @@ public class Settings implements net.ess3.api.ISettings
|
|||
config.load();
|
||||
noGodWorlds = new HashSet<String>(config.getStringList("no-god-in-worlds"));
|
||||
enabledSigns = _getEnabledSigns();
|
||||
teleportSafety = _isTeleportSafetyEnabled();
|
||||
teleportInvulnerabilityTime = _getTeleportInvulnerability();
|
||||
teleportInvulnerability = _isTeleportInvulnerability();
|
||||
disableItemPickupWhileAfk = _getDisableItemPickupWhileAfk();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue