Fix similarWarpExist message not being translated correctly

This commit is contained in:
JRoy 2024-09-14 12:51:31 -04:00 committed by Josh Roy
parent b54c8c1774
commit 9dfa8cf3cb

View File

@ -79,7 +79,7 @@ public class Warps implements IConf, net.ess3.api.IWarps {
if (conf == null) {
final File confFile = new File(warpsFolder, filename + ".yml");
if (confFile.exists()) {
throw new Exception(user == null ? tlLiteral("similarWarpExist") : user.playerTl("similarWarpExist"));
throw new TranslatableException("similarWarpExist");
}
conf = new EssentialsConfiguration(confFile);
conf.load();