mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Add delegates to exploit config
This commit is contained in:
parent
75bb3f181d
commit
1f734582d4
@ -16,6 +16,10 @@ public class ConfigExploitPrevention {
|
|||||||
@Setting(value = "Skills", comment = "Exploit settings for specific skills")
|
@Setting(value = "Skills", comment = "Exploit settings for specific skills")
|
||||||
private ConfigSectionExploitSkills configSectionExploitSkills = new ConfigSectionExploitSkills();
|
private ConfigSectionExploitSkills configSectionExploitSkills = new ConfigSectionExploitSkills();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* BOILERPLATE GETTERS
|
||||||
|
*/
|
||||||
|
|
||||||
public boolean getEndermenEndermiteFix() {
|
public boolean getEndermenEndermiteFix() {
|
||||||
return configSectionGeneral.getEndermenEndermiteFix();
|
return configSectionGeneral.getEndermenEndermiteFix();
|
||||||
}
|
}
|
||||||
@ -47,4 +51,40 @@ public class ConfigExploitPrevention {
|
|||||||
public ConfigSectionExploitFishing getConfigSectionExploitFishing() {
|
public ConfigSectionExploitFishing getConfigSectionExploitFishing() {
|
||||||
return configSectionExploitSkills.getConfigSectionExploitFishing();
|
return configSectionExploitSkills.getConfigSectionExploitFishing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getFishingRodSpamMilliseconds() {
|
||||||
|
return getConfigSectionExploitFishing().getFishingRodSpamMilliseconds();
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getOverFishingAreaSize() {
|
||||||
|
return getConfigSectionExploitFishing().getOverFishingAreaSize();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isPreventFishingExploits() {
|
||||||
|
return getConfigSectionExploitFishing().isPreventFishingExploits();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getOverfishingLimit() {
|
||||||
|
return getConfigSectionExploitFishing().getOverfishingLimit();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isAlertAdminsOnOverFishing() {
|
||||||
|
return getConfigSectionExploitFishing().isAlertAdminsOnOverFishing();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getRollXPGainCooldownSeconds() {
|
||||||
|
return getConfigSectionExploitAcrobatics().getRollXPGainCooldownSeconds();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTeleportCooldownSeconds() {
|
||||||
|
return getConfigSectionExploitAcrobatics().getTeleportCooldownSeconds();
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getAcrobaticLocationLimit() {
|
||||||
|
return getConfigSectionExploitAcrobatics().getAcrobaticLocationLimit();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isPreventAcrobaticsAbuse() {
|
||||||
|
return getConfigSectionExploitAcrobatics().isPreventAcrobaticsAbuse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user