Translate Gamemode placeholder in cantGamemode message (#5771)

This commit is contained in:
DarkLaw 2024-04-28 11:44:21 +03:00 committed by GitHub
parent 6a2527ccdb
commit 549283a1e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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