Selaa lähdekoodia

Localize XpLock command.

GJ 12 vuotta sitten
vanhempi
sitoutus
2e751b1438

+ 1 - 2
src/main/java/com/gmail/nossr50/commands/spout/XplockCommand.java

@@ -1,6 +1,5 @@
 package com.gmail.nossr50.commands.spout;
 
-import org.bukkit.ChatColor;
 import org.bukkit.command.Command;
 import org.bukkit.command.CommandExecutor;
 import org.bukkit.command.CommandSender;
@@ -22,7 +21,7 @@ import com.gmail.nossr50.util.Users;
 public class XplockCommand implements CommandExecutor {
     @Override
     public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
-        String usage = ChatColor.RED + "Proper usage is /xplock [skill]";
+        String usage = LocaleLoader.getString("Commands.Usage.1", new Object[] {"xplock", "[skill]"});
 
         if (CommandHelper.noConsoleUsage(sender)) {
             return true;

+ 1 - 0
src/main/resources/locale/locale_en_US.properties

@@ -440,6 +440,7 @@ Commands.SkillInfo=/<skill> [[RED]]- View detailed information about a skill
 Commands.Stats.Self=YOUR STATS
 Commands.Stats=[[RED]]- View your mcMMO stats
 Commands.ToggleAbility=[[RED]]- Toggle ability activation with right click
+Commands.Usage.1=[[RED]]Proper usage is /{0} {1}
 mcMMO.NoInvites=[[RED]]You have no invites at this time
 mcMMO.NoPermission=[[DARK_RED]]Insufficient permissions.
 mcMMO.NoSkillNote=[[DARK_GRAY]]If you don't have access to a skill it will not be shown here.