Replace old magic.yml files

This commit is contained in:
h31ix committed 2013-03-29 13:56:40 -04:00
1 parent 8d13e964ae
commit 473ceb816e
6 files changed
+33 -13

No files matched your search

@@ -253,26 +253,26 @@ public class Anticheat extends JavaPlugin {
}
public static Anticheat getPlugin() {
return manager.getPlugin();
return manager.getPlugin();
}
public static AnticheatManager getManager() {
return manager;
return manager;
}
public static boolean isUpdated() {
return !update;
return !update;
}
public static String getVersion() {
return manager.getPlugin().getDescription().getVersion();
return manager.getPlugin().getDescription().getVersion();
}
private void cleanup() {
eventList = null;
manager = null;
config = null;
metrics = null;
eventList = null;
manager = null;
config = null;
metrics = null;
}
public static boolean developerMode() {
@@ -292,4 +292,8 @@ public class Anticheat extends JavaPlugin {
}
});
}
public void replaceMagic() {
saveResource("magic.yml", true);
}
}