diff --git a/src/main/java/world/bentobox/challenges/managers/ChallengesImportManager.java b/src/main/java/world/bentobox/challenges/managers/ChallengesImportManager.java index aa76502..ed48f0c 100644 --- a/src/main/java/world/bentobox/challenges/managers/ChallengesImportManager.java +++ b/src/main/java/world/bentobox/challenges/managers/ChallengesImportManager.java @@ -101,10 +101,8 @@ public class ChallengesImportManager Utils.sendMessage(user, user.getTranslation(Constants.ERRORS + "no-load", Constants.PARAMETER_FILE, file, TextVariables.DESCRIPTION, e.getMessage())); } - else - { - this.addon.logError("Exception when loading file. " + e.getMessage()); - } + + this.addon.logError("Exception when loading file. " + e.getMessage()); return; } @@ -119,10 +117,8 @@ public class ChallengesImportManager user.getTranslation(Constants.ERRORS + "not-a-gamemode-world", Constants.PARAMETER_WORLD, world.getName())); } - else - { - this.addon.logWarning("Given world is not a gamemode world."); - } + + this.addon.logWarning("Given world is not a gamemode world."); return; } diff --git a/src/main/resources/locales/en-US.yml b/src/main/resources/locales/en-US.yml index bc03183..c935902 100755 --- a/src/main/resources/locales/en-US.yml +++ b/src/main/resources/locales/en-US.yml @@ -1189,7 +1189,7 @@ challenges: not-enough-money: '&c It is necessary to have [value] on your account to complete the challenge.' not-enough-experience: '&c It is necessary to have [value] EXP to complete this challenge.' island-level: '&c Your island must be level [number] or greater to complete this challenge!' - no-load: '&c Error: Could not load file. [message]' + no-load: '&c Error: Could not load [file]. Error [message]' load-error: '&c Error: Cannot load [value].' no-rank: "&c You do not have rank that is high enough to do that." cannot-remove-items: '&c Some items cannot be removed from your inventory!'