Skip to content

Commit

Permalink
remove some outdated/unused config settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 3, 2019
1 parent 2a9f9ac commit 24e7c62
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
28 changes: 0 additions & 28 deletions plugin/src/main/java/net/aufdemrand/denizen/Settings.java
Expand Up @@ -184,24 +184,6 @@ public static String triggerDefaultCooldownType(String triggerName) {

/*
# If the damage trigger is disabled on an NPC, and the NPC is not
# vulnerable, both the right and left clicks can be used to activate
# the click trigger. Default setting in versions 0.8+ is 'false',
# but it's worth noting that in previous versions this was by
# default 'true'.
#
# Select true if you would like invulnerable NPCs to use both right
# and left clicks to activate the click trigger.
*/

public static boolean clickTriggerAllowsLeftClick() { // TODO: Remove?
return DenizenAPI.getCurrentInstance().getConfig()
.getBoolean("Triggers.Click.Allows left click", false);
}

/*
# Default engage timeout. When NPCs are set to ENGAGE, this is
# the default timeout that they will auto-DISENGAGE if not otherwise
# specified. (Default, 150 seconds)
Expand Down Expand Up @@ -274,11 +256,6 @@ public static boolean allowServerRestart() {
.getBoolean("Commands.Restart.Allow server restart", true);
}

public static boolean allowRunningJava() {
return DenizenAPI.getCurrentInstance().getConfig()
.getBoolean("Commands.Java.Allow running java", false);
}

public static boolean allowLogging() {
return DenizenAPI.getCurrentInstance().getConfig()
.getBoolean("Commands.Log.Allow logging", true);
Expand Down Expand Up @@ -433,11 +410,6 @@ public static int blockTagsMaxBlocks() {
.getInt("Tags.Block tags.Max blocks", 1000000);
}

public static int pathfindingMaxDistance() {
return DenizenAPI.getCurrentInstance().getConfig()
.getInt("Tags.Path finding.Max distance", 100);
}

public static int chatHistoryMaxMessages() {
return DenizenAPI.getCurrentInstance().getConfig()
.getInt("Tags.Chat history.Max messages", 10);
Expand Down
9 changes: 0 additions & 9 deletions plugin/src/main/resources/config.yml
Expand Up @@ -63,7 +63,6 @@ Triggers:
Click:
Enabled: true
Cooldown: 2s
Allows left click: false
Damage:
Enabled: false
Cooldown: 0.5s
Expand Down Expand Up @@ -113,11 +112,6 @@ Commands:
# Note that this could be abused by overwriting existing files.
# Set to 'false' if you're worried about security.
Allow copying files: true
Java:
# Whether scripts are allowed to run arbitrary Java code.
# This is extremely dangerous and should be kept off unless monitored carefully.
# Set to 'false' if you're worried about security.
Allow running java: false
Log:
# The log command writes to file, which is potentially dangerous
# Set to 'false' if you're worried about security.
Expand Down Expand Up @@ -145,9 +139,6 @@ Tags:
Block tags:
# How many blocks can be read, max, before stopping the tag in place
Max blocks: 1000000
Path finding:
# How far away the path finder can search before giving up
Max distance: 100
Chat history:
# How many player messages will be stored for each player (<player.chat_history>, etc.)
Max messages: 10
Expand Down

0 comments on commit 24e7c62

Please sign in to comment.