Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added locale support for gm command #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Expand Up @@ -44,7 +44,7 @@ public void gameMode(@Sender EntityPlayerMP player, int mode, @Optional EntityPl
try {
gameType = GameType.values()[mode];
player.setGameType(GameType.getByID(mode));
player.addChatMessage(new ChatComponentText("You have switched to " + GameType.getByID(mode) + " mode."));
player.addChatMessage(new ChatComponentText((tr("gameModeCommands.gm1")) + GameType.getByID(mode) + (tr("gameModeCommands.gm2"))));
} catch (ArrayIndexOutOfBoundsException e) {
throw new CommandException("You specified an invalid gamemode.");
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/com/skcraft/plume/lang/Plume.properties
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,5 @@ logger.items.inventoryName=Logged Items

gameModeCommands.switchcr=�eYou have switched to CREATIVE Mode.
gameModeCommands.switchsu=�eYou have switched to SURVIVAL Mode.
gameModeCommands.gm1=�eYou have switched to
gameModeCommands.gm2=�e mode.