Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.ess3.api;

import com.earth2me.essentials.utils.AdventureUtil;

import static com.earth2me.essentials.I18n.tlLiteral;

/**
Expand Down Expand Up @@ -39,6 +41,7 @@ public Object[] getArgs() {

@Override
public String getMessage() {
return tlLiteral(tlKey, args);
final String literal = tlLiteral(tlKey, args);
return AdventureUtil.miniToLegacy(literal);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.earth2me.essentials.api.UserDoesNotExistException;
import com.earth2me.essentials.commands.IEssentialsCommand;
import com.earth2me.essentials.commands.NoChargeException;
import com.earth2me.essentials.utils.AdventureUtil;
import net.ess3.api.Economy;
import net.ess3.api.MaxMoneyException;
import org.bukkit.command.CommandSender;
Expand Down Expand Up @@ -138,7 +139,7 @@ public void testNegativePayCommand() {
try {
runCommand("pay", user1, PLAYERNAME2 + " -123");
} catch (final Exception e) {
Assert.assertEquals(I18n.tlLiteral("payMustBePositive"), e.getMessage());
Assert.assertEquals(AdventureUtil.miniToLegacy(I18n.tlLiteral("payMustBePositive")), e.getMessage());
}
}
}
Loading