mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 13:36:06 +01:00
Fixes an issue when error message about file loading was not logged.
This commit is contained in:
parent
d59b047555
commit
c933caebe0
@ -101,10 +101,8 @@ public class ChallengesImportManager
|
|||||||
Utils.sendMessage(user, user.getTranslation(Constants.ERRORS + "no-load",
|
Utils.sendMessage(user, user.getTranslation(Constants.ERRORS + "no-load",
|
||||||
Constants.PARAMETER_FILE, file, TextVariables.DESCRIPTION, e.getMessage()));
|
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;
|
return;
|
||||||
}
|
}
|
||||||
@ -119,10 +117,8 @@ public class ChallengesImportManager
|
|||||||
user.getTranslation(Constants.ERRORS + "not-a-gamemode-world",
|
user.getTranslation(Constants.ERRORS + "not-a-gamemode-world",
|
||||||
Constants.PARAMETER_WORLD, world.getName()));
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1189,7 +1189,7 @@ challenges:
|
|||||||
not-enough-money: '&c It is necessary to have [value] on your account to complete the challenge.'
|
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.'
|
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!'
|
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].'
|
load-error: '&c Error: Cannot load [value].'
|
||||||
no-rank: "&c You do not have rank that is high enough to do that."
|
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!'
|
cannot-remove-items: '&c Some items cannot be removed from your inventory!'
|
||||||
|
Loading…
Reference in New Issue
Block a user