mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed dumb NPE on load.
This commit is contained in:
1 parent
9de009cc44
commit
d8204161e1
2 files changed
+4
-5
No files matched your search
@@ -65,8 +65,8 @@ public class Anticheat extends JavaPlugin
|
||||
public void onEnable()
|
||||
{
|
||||
plugin = this;
|
||||
checkConfig();
|
||||
config = AnticheatManager.CONFIGURATION;
|
||||
checkConfig();
|
||||
verbose = config.verboseStartup();
|
||||
updateFolder = config.updateFolder();
|
||||
checkForUpdate();
|
||||
@@ -211,7 +211,7 @@ public class Anticheat extends JavaPlugin
|
||||
|
||||
public static void checkConfig()
|
||||
{
|
||||
if(!config.getConfigFile().exists())
|
||||
if(!new File("plugins/AntiCheat/config.yml").exists())
|
||||
{
|
||||
plugin.saveDefaultConfig();
|
||||
if(verbose)
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
package net.h31ix.anticheat.manage;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.EnumMap;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -329,7 +328,7 @@ public class Backend
|
||||
public boolean justSprinted(Player player)
|
||||
{
|
||||
return sprinted.contains(player.getName());
|
||||
}
|
||||
}
|
||||
|
||||
public void logBlockBreak(final Player player)
|
||||
{
|
||||
@@ -399,7 +398,7 @@ public class Backend
|
||||
public boolean justDroppedItem(Player player)
|
||||
{
|
||||
return droppedItem.contains(player.getName());
|
||||
}
|
||||
}
|
||||
|
||||
private void logEvent(final List list, final Player player, long time)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user