Skip to content

Commit

Permalink
add config option for new core commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 17, 2019
1 parent 3a8bfbe commit d4227d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/src/main/java/net/aufdemrand/denizen/Denizen.java
Expand Up @@ -1737,6 +1737,11 @@ public boolean tagTimeoutWhenSilent() {
}
return tTimeoutSil;
}

@Override
public boolean getDefaultDebugMode() {
return Settings.defaultDebugMode();
}
}


5 changes: 5 additions & 0 deletions plugin/src/main/java/net/aufdemrand/denizen/Settings.java
Expand Up @@ -63,6 +63,11 @@ public static boolean canRecordStats() {
return DenizenAPI.getCurrentInstance().getConfig().getBoolean("Debug.Stats", true);
}

public static boolean defaultDebugMode() {
return DenizenAPI.getCurrentInstance().getConfig()
.getBoolean("Debug.Container default", true);
}

/*
# Sets the default speed between execution of commands in queues
Expand Down
3 changes: 3 additions & 0 deletions plugin/src/main/resources/config.yml
Expand Up @@ -16,6 +16,9 @@ Debug:
Stats: true
# Whether to force the help command to be the default bukkit help (required to fix issues with command script help options).
Override help: true
# The default debug mode for script containers.
# This should almost always be left at 'true'.
Container default: true

Scripts:
World:
Expand Down

0 comments on commit d4227d9

Please sign in to comment.