Skip to content

Commit

Permalink
Altered "isDebugEnabled" method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson committed Sep 10, 2021
1 parent ec045d8 commit c513463
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/dansplugins/fiefs/Fiefs.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ public final class Fiefs extends JavaPlugin {

private static Fiefs instance;

private final boolean debug = true;

private final String version = "v0.4";

public static Fiefs getInstance() {
Expand All @@ -36,7 +34,7 @@ public void onEnable() {
}

if (!MedievalFactionsIntegrator.getInstance().isMedievalFactionsPresent()) {
if (debug) {
if (isDebugEnabled()) {
System.out.println("Medieval Factions wasn't found. Fiefs cannot enable.");
}
return;
Expand All @@ -62,7 +60,7 @@ public String getVersion() {
}

public boolean isDebugEnabled() {
return debug;
return ConfigManager.getInstance().getBoolean("debugMode");
// return getConfig().getBoolean("debugMode");
}

Expand Down

0 comments on commit c513463

Please sign in to comment.