|
@@ -8,6 +8,7 @@ public class ConfigSectionExploitAcrobatics {
|
|
|
|
|
|
public static final int ACROBATIC_LOCATION_LIMIT_DEFAULT = 50;
|
|
public static final int ACROBATIC_LOCATION_LIMIT_DEFAULT = 50;
|
|
public static final boolean PREVENT_ACROBATICS_ABUSE_DEFAULT = true;
|
|
public static final boolean PREVENT_ACROBATICS_ABUSE_DEFAULT = true;
|
|
|
|
+ public static final int TELEPORT_COOLDOWN_DEFAULT = 30;
|
|
|
|
|
|
@Setting(value = "Player-Fall-Location-Tracking",
|
|
@Setting(value = "Player-Fall-Location-Tracking",
|
|
comment = "The amount of locations to keep track of for player falls." +
|
|
comment = "The amount of locations to keep track of for player falls." +
|
|
@@ -27,6 +28,14 @@ public class ConfigSectionExploitAcrobatics {
|
|
"\nDefault value: "+PREVENT_ACROBATICS_ABUSE_DEFAULT)
|
|
"\nDefault value: "+PREVENT_ACROBATICS_ABUSE_DEFAULT)
|
|
private boolean preventAcrobaticsAbuse = PREVENT_ACROBATICS_ABUSE_DEFAULT;
|
|
private boolean preventAcrobaticsAbuse = PREVENT_ACROBATICS_ABUSE_DEFAULT;
|
|
|
|
|
|
|
|
+ @Setting(value = "No-XP-After-Teleporting-Cooldown-In-Seconds", comment = "Prevents XP gains for Acrobatics for a set period of time after teleporting." +
|
|
|
|
+ "\nDefault value: "+TELEPORT_COOLDOWN_DEFAULT)
|
|
|
|
+ private int teleportCooldownSeconds = TELEPORT_COOLDOWN_DEFAULT;
|
|
|
|
+
|
|
|
|
+ public int getTeleportCooldownSeconds() {
|
|
|
|
+ return teleportCooldownSeconds;
|
|
|
|
+ }
|
|
|
|
+
|
|
public int getAcrobaticLocationLimit() {
|
|
public int getAcrobaticLocationLimit() {
|
|
return acrobaticLocationLimit;
|
|
return acrobaticLocationLimit;
|
|
}
|
|
}
|