This commit is contained in:
h31ix committed 2013-05-26 02:27:19 -04:00
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);
}
}