mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
Restore inventories looted by fast inventory and flush magic values when reloaded
This commit is contained in:
1 parent
873a1b9d60
commit
96f3906eff
6 files changed
+61
-8
No files matched your search
@@ -61,6 +61,7 @@ public class Configuration {
|
||||
private String chatActionBan;
|
||||
private static Language language;
|
||||
private List<String> exemptWorlds = new ArrayList<String>();
|
||||
private Magic magicInstance;
|
||||
|
||||
public Configuration(AnticheatManager instance) {
|
||||
micromanage = instance;
|
||||
@@ -219,6 +220,10 @@ public class Configuration {
|
||||
exemptWorlds = config.getStringList("Disable in");
|
||||
// End pulling values from config
|
||||
save();
|
||||
magicInstance = new Magic(getMagic(), this, CommentedConfiguration.loadConfiguration(micromanage.getPlugin().getResource("magic.yml")));
|
||||
if(micromanage.getBackend() != null) { // If this is first run, backend may not be setup yet
|
||||
micromanage.getBackend().updateMagic(magicInstance);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean getBoolean(String entry, boolean d) {
|
||||
@@ -293,4 +298,8 @@ public class Configuration {
|
||||
Logger.getLogger(Configuration.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
public Magic getMagicInstance() {
|
||||
return magicInstance;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user