mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
A bit of cleanup and made sure liquids won't block interaction
This commit is contained in:
1 parent
a3cdd6a839
commit
0f8d66905d
3 files changed
+17
-9
No files matched your search
@@ -44,7 +44,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||
public class Anticheat extends JavaPlugin
|
||||
{
|
||||
private static AnticheatManager manager;
|
||||
private final List<Listener> eventList = new ArrayList<Listener>();
|
||||
private static List<Listener> eventList = new ArrayList<Listener>();
|
||||
private static boolean update = false;
|
||||
private static final int BYTE_SIZE = 1024;
|
||||
private static Logger logger;
|
||||
@@ -67,6 +67,7 @@ public class Anticheat extends JavaPlugin
|
||||
}
|
||||
config.saveLevels();
|
||||
getServer().getScheduler().cancelAllTasks();
|
||||
cleanup();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -380,4 +381,12 @@ public class Anticheat extends JavaPlugin
|
||||
{
|
||||
return this.getLogger();
|
||||
}
|
||||
private void cleanup()
|
||||
{
|
||||
this.eventList = null;
|
||||
this.manager = null;
|
||||
this.config = null;
|
||||
this.metrics = null;
|
||||
this.logger = null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user