mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fix #234
This commit is contained in:
1 parent
1952171aaf
commit
d2d72f0736
2 files changed
+2
-2
No files matched your search
@@ -48,7 +48,7 @@ public class EventListener implements Listener {
|
||||
private static void logCheat(CheckType type, User user) {
|
||||
USAGE_LIST.put(type, getCheats(type) + 1);
|
||||
// Ignore plugins that are creating NPCs with no names (why the hell)
|
||||
if (user.getName() != null) {
|
||||
if (user != null && user.getName() != null) {
|
||||
type.logUse(user.getName());
|
||||
if (Anticheat.getManager().getConfiguration().getFileLogLevel() == 2 && type.getUses(user.getName()) % 10 == 0) {
|
||||
Anticheat.getManager().fileLog(user.getName() + " has triggered multiple " + type + " checks.");
|
||||
|
||||
@@ -337,7 +337,7 @@ public class Configuration {
|
||||
|
||||
save();
|
||||
magicInstance = new Magic(getMagic(), this, CommentedConfiguration.loadConfiguration(micromanage.getPlugin().getResource("magic.yml")), Double.parseDouble(version));
|
||||
if(micromanage.getBackend() != null) { // If this is first run, backend may not be setup yet
|
||||
if(micromanage.getBackend() != null) { // If this is first run, backend may not be setup yet (this is for reloads)
|
||||
micromanage.getBackend().updateMagic(magicInstance);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user