Radius Claiming & Alt Limit Fix

This commit is contained in:
Driftay
2020-05-04 20:27:39 -04:00
parent e0d2e6b4db
commit 499d41dea0
14 changed files with 84 additions and 51 deletions

View File

@@ -66,6 +66,7 @@ public class FactionsPlugin extends MPlugin {
// Our single plugin instance.
// Single 4 life.
public static FactionsPlugin instance;
public static boolean cachedRadiusClaim;
public static Permission perms = null;
// This plugin sets the boolean true when fully enabled.
// Plugins can check this boolean while hooking in have
@@ -248,6 +249,8 @@ public class FactionsPlugin extends MPlugin {
// start up task which runs the autoLeaveAfterDaysOfInactivity routine
startAutoLeaveTask(false);
cachedRadiusClaim = Conf.useRadiusClaimSystem;
if (version > 8) {
useNonPacketParticles = true;
log("Minecraft Version 1.9 or higher found, using non packet based particle API");
@@ -452,7 +455,7 @@ public class FactionsPlugin extends MPlugin {
@Override
public void onDisable() {
// only save data if plugin actually completely loaded successfully
super.onDisable();
if (this.loadSuccessful) {
Conf.load();
Conf.saveSync();
@@ -476,7 +479,6 @@ public class FactionsPlugin extends MPlugin {
e.printStackTrace();
}
}
this.getServer().getScheduler().cancelTasks(this);
super.onDisable();
}