mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +00:00
Debug
This commit is contained in:
1 parent
c1af360c9f
commit
77645da2b2
1 file changed
-4
@@ -80,8 +80,6 @@ public class Configuration {
|
|||||||
events.save(eventsFile);
|
events.save(eventsFile);
|
||||||
level.save(levelFile);
|
level.save(levelFile);
|
||||||
magic.save(magicFile);
|
magic.save(magicFile);
|
||||||
System.out.println("Saved");
|
|
||||||
System.out.println(config.get("Events.Level Medium"));
|
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Logger.getLogger(Configuration.class.getName()).severe(ex.getMessage());
|
Logger.getLogger(Configuration.class.getName()).severe(ex.getMessage());
|
||||||
}
|
}
|
||||||
@@ -168,9 +166,7 @@ public class Configuration {
|
|||||||
int medValue = config.getString("Events.Medium threshold") != null ? config.getInt("Events.Medium threshold") : -1;
|
int medValue = config.getString("Events.Medium threshold") != null ? config.getInt("Events.Medium threshold") : -1;
|
||||||
int highValue = config.getString("Events.High threshold") != null ? config.getInt("Events.High threshold") : -1;
|
int highValue = config.getString("Events.High threshold") != null ? config.getInt("Events.High threshold") : -1;
|
||||||
|
|
||||||
System.out.println("Set event null");
|
|
||||||
config.set("Events", null);
|
config.set("Events", null);
|
||||||
System.out.println(config.get("Events.Level Medium"));
|
|
||||||
Level mediumLevel = new Level("Medium", medValue != -1 ? medValue : 20, ChatColor.YELLOW);
|
Level mediumLevel = new Level("Medium", medValue != -1 ? medValue : 20, ChatColor.YELLOW);
|
||||||
Level highLevel = new Level("High", highValue != -1 ? highValue : 50, ChatColor.RED);
|
Level highLevel = new Level("High", highValue != -1 ? highValue : 50, ChatColor.RED);
|
||||||
Level customLevel = new Level("Custom", -1, ChatColor.GREEN);
|
Level customLevel = new Level("Custom", -1, ChatColor.GREEN);
|
||||||
|
|||||||
Reference in new issue
Block a user