Ensure translatable placeholders for gamemode in cantGamemode key

This commit is contained in:
ImDarkLaw 2024-04-28 07:26:49 +03:00
parent c60ed56190
commit c8e6ef1163
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class Commandgamemode extends EssentialsLoopCommand {
}
if (isProhibitedChange(user, gameMode)) {
user.sendTl("cantGamemode", gameMode.name());
user.sendTl("cantGamemode", user.playerTl(gameMode.toString().toLowerCase(Locale.ENGLISH)));
return;
}