Skip to content

Commit

Permalink
Fixed teleportDelay being referenced as a boolean when being set in t…
Browse files Browse the repository at this point in the history
…he local config service.
  • Loading branch information
dmccoystephenson committed Mar 6, 2022
1 parent 742b79c commit 92ce2de
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ public void setConfigOption(String option, String value, CommandSender sender) {
|| option.equalsIgnoreCase("factionMaxNameLength")
|| option.equalsIgnoreCase("factionMaxNumberGates")
|| option.equalsIgnoreCase("factionMaxGateArea")
|| option.equalsIgnoreCase("maxClaimRadius")) {
|| option.equalsIgnoreCase("maxClaimRadius")
|| option.equalsIgnoreCase("teleportDelay")) {
getConfig().set(option, Integer.parseInt(value));
sender.sendMessage(ChatColor.GREEN + LocalLocaleService.getInstance().getText("IntegerSet"));
} else if (option.equalsIgnoreCase("mobsSpawnInFactionTerritory")
Expand All @@ -234,8 +235,7 @@ public void setConfigOption(String option, String value, CommandSender sender) {
|| option.equalsIgnoreCase("limitLand")
|| option.equalsIgnoreCase("factionsCanSetPrefixColors")
|| option.equalsIgnoreCase("playersLosePowerOnDeath")
|| option.equalsIgnoreCase("bonusPowerEnabled")
|| option.equalsIgnoreCase("teleportDelay")) {
|| option.equalsIgnoreCase("bonusPowerEnabled")) {
getConfig().set(option, Boolean.parseBoolean(value));
sender.sendMessage(ChatColor.GREEN + LocalLocaleService.getInstance().getText("BooleanSet"));
} else if (option.equalsIgnoreCase("factionOwnerMultiplier")
Expand Down

0 comments on commit 92ce2de

Please sign in to comment.