Skip to content

Commit 549283a

Browse files
authored
Translate Gamemode placeholder in cantGamemode message (#5771)
1 parent 6a2527c commit 549283a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Essentials/src/main/java/com/earth2me/essentials/commands/Commandgamemode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected void run(final Server server, final User user, final String commandLab
5555
}
5656

5757
if (isProhibitedChange(user, gameMode)) {
58-
user.sendTl("cantGamemode", gameMode.name());
58+
user.sendTl("cantGamemode", user.playerTl(gameMode.toString().toLowerCase(Locale.ENGLISH)));
5959
return;
6060
}
6161

0 commit comments

Comments
 (0)