Skip to content

Commit

Permalink
Ensure translatable placeholders for gamemode in cantGamemode key
Browse files Browse the repository at this point in the history
  • Loading branch information
ImDarkLaw committed Apr 28, 2024
1 parent c60ed56 commit c8e6ef1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected void run(final Server server, final User user, final String commandLab
}

if (isProhibitedChange(user, gameMode)) {
user.sendTl("cantGamemode", gameMode.name());
user.sendTl("cantGamemode", user.playerTl(gameMode.toString().toLowerCase(Locale.ENGLISH)));
return;
}

Expand Down

0 comments on commit c8e6ef1

Please sign in to comment.