mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Localize /mchud & /ptp
This commit is contained in:
parent
2e751b1438
commit
5f4c83b6a1
@ -1,6 +1,5 @@
|
||||
package com.gmail.nossr50.commands.party;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
@ -13,6 +12,7 @@ import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||
import com.gmail.nossr50.events.party.McMMOPartyTeleportEvent;
|
||||
import com.gmail.nossr50.locale.LocaleLoader;
|
||||
import com.gmail.nossr50.party.PartyManager;
|
||||
import com.gmail.nossr50.util.Misc;
|
||||
import com.gmail.nossr50.util.Users;
|
||||
|
||||
public class PtpCommand implements CommandExecutor {
|
||||
@ -24,7 +24,7 @@ public class PtpCommand implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
String usage = ChatColor.RED + "Proper usage is /ptp <player>"; //TODO: Needs more locale.
|
||||
String usage = LocaleLoader.getString("Commands.Usage.1", new Object[] {"ptp", "<" + LocaleLoader.getString("Commands.Usage.Player") + ">"});
|
||||
|
||||
if (CommandHelper.noConsoleUsage(sender)) {
|
||||
return true;
|
||||
@ -39,7 +39,7 @@ public class PtpCommand implements CommandExecutor {
|
||||
Player player = (Player) sender;
|
||||
PlayerProfile profile = Users.getProfile(player);
|
||||
|
||||
if (profile.getRecentlyHurt() + (Config.getInstance().getPTPCommandCooldown() * 1000) > System.currentTimeMillis()) {
|
||||
if (profile.getRecentlyHurt() + (Config.getInstance().getPTPCommandCooldown() * Misc.TIME_CONVERSION_FACTOR) > System.currentTimeMillis()) {
|
||||
player.sendMessage(LocaleLoader.getString("Party.Teleport.Hurt", new Object[] { Config.getInstance().getPTPCommandCooldown() }));
|
||||
return true;
|
||||
}
|
||||
|
@ -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;
|
||||
@ -18,8 +17,8 @@ import com.gmail.nossr50.util.Users;
|
||||
public class MchudCommand implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||
String usage = ChatColor.RED + "Proper usage is /mchud <hud-type>"; //TODO: Locale
|
||||
String invalid = ChatColor.RED + "That is not a valid HUD type."; //TODO: Locale
|
||||
String usage = LocaleLoader.getString("Commands.Usage.1", new Object[] {"mchud", "<DISABLED | STANDARD | SMALL | RETRO>"});
|
||||
String invalid = LocaleLoader.getString("Commands.mchud.Invalid");
|
||||
|
||||
if (CommandHelper.noConsoleUsage(sender)) {
|
||||
return true;
|
||||
|
@ -350,6 +350,7 @@ Commands.Invite.Accepted=[[GREEN]] Gwahodd Derbyniwyd. Yr ydych wedi ymuno parti
|
||||
Commands.Invite.Success=[[GREEN]]Invite sent successfully.
|
||||
Commands.Leaderboards=<skill> <page> [[RED]]- Leaderboards
|
||||
Commands.mcgod=[[RED]]- Toggle GodMode
|
||||
Commands.mchud.Invalid=[[RED]]That is not a valid HUD type.
|
||||
Commands.mcrank.Heading=[[GOLD]]-=PERSONAL RANKINGS=-
|
||||
Commands.mcrank.Overall=[[YELLOW]]Overall[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{0}
|
||||
Commands.mcrank.Player=[[RED]]TARGET: [[WHITE]]{0}
|
||||
@ -385,11 +386,11 @@ 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
|
||||
mcMMO.MOTD=[[BLUE]]This server is running mcMMO {0}! \n Type [[YELLOW]]/mcmmo[[BLUE]] for help.
|
||||
Commands.Usage.1=[[RED]]Proper usage is /{0} {1}
|
||||
Commands.Usage.Player=player
|
||||
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.
|
||||
mcMMO.Website=[[GREEN]]http://forums.mcmmo.info[[BLUE]] - mcMMO Website
|
||||
Commands.Party.InParty=[[GREEN]]Parti: {0}
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
||||
Party.Help.0=[[RED]]Proper usage is /party <party-name> to join or /party q to quit
|
||||
@ -413,6 +414,7 @@ Party.Player.Invalid=[[RED]] Nid yw hynny\'n chwaraewr ddilys.
|
||||
Party.Teleport.Dead=[[RED]] Ni allwch teleport y chwaraewr yn farw.
|
||||
Party.Teleport.Hurt=[[RED]]You\'ve been hurt in the last {0} seconds and cannnot teleport.
|
||||
Party.Teleport.Player=[[GREEN]]You have teleported to {0}.
|
||||
Party.Teleport.Self=[[RED]]You can't teleport to yourself!
|
||||
Party.Teleport.Target=[[GREEN]] {0} wedi teleported i chi.
|
||||
Party.Unlocked=[[GRAY]] Blaid yn cael ei gloi
|
||||
Commands.XPGain.Acrobatics=Falling
|
||||
|
@ -393,6 +393,7 @@ Commands.Invite.Accepted=[[GREEN]]Einladung akzeptiert. Du bist der Gruppe {0} b
|
||||
Commands.Invite.Success=[[GREEN]]Einladung erfolgreich versendet.
|
||||
Commands.Leaderboards=<skill> <seite> [[RED]]- Ranglisten
|
||||
Commands.mcgod=[[RED]]- GodMode umschalten
|
||||
Commands.mchud.Invalid=[[RED]]That is not a valid HUD type.
|
||||
Commands.mcrank.Heading=[[GOLD]]-=PERSONAL RANKINGS=-
|
||||
Commands.mcrank.Overall=[[YELLOW]]Overall[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{0}
|
||||
Commands.mcrank.Player=[[RED]]TARGET: [[WHITE]]{0}
|
||||
@ -431,11 +432,11 @@ Commands.SkillInfo=/<skill> [[RED]]- Zeigt detalierte Infos \u00FCber einen Skil
|
||||
Commands.Stats.Self=DEINE WERTE
|
||||
Commands.Stats=[[RED]]- Zeigt deine mcMMO Werte
|
||||
Commands.ToggleAbility=[[RED]]- F\u00E4higkeiten-Aktivierung per Rechtsklick umschalten
|
||||
mcMMO.MOTD=[[BLUE]]Auf diesem Server l\u00E4uft mcMMO {0}! \n schreibe [[YELLOW]]/mcmmo[[BLUE]] f\u00FCr weitere Hilfe.
|
||||
Commands.Usage.1=[[RED]]Proper usage is /{0} {1}
|
||||
Commands.Usage.Player=player
|
||||
mcMMO.NoInvites=[[RED]]Du hast derzeit keine Einladungen
|
||||
mcMMO.NoPermission=[[DARK_RED]]Unzureichende Rechte.
|
||||
mcMMO.NoSkillNote=[[DARK_GRAY]]F\u00FCr dich nicht verf\u00FCgbare Skills werden ausgeblendet.
|
||||
mcMMO.Website=[[GREEN]]http://forums.mcmmo.info[[BLUE]] - mcMMO Website
|
||||
|
||||
##GRUPPE
|
||||
Commands.Party.InParty=[[GREEN]]Gruppe: {0}
|
||||
@ -461,6 +462,7 @@ Party.Player.Invalid=[[RED]]Dies ist kein g\u00FCltiger Spieler.
|
||||
Party.Teleport.Dead=[[RED]]Du kannst dich nicht zu toten Spielern teleportieren
|
||||
Party.Teleport.Hurt=[[RED]]Du wurdest in den letzten {0} Sekunden verletzt und kannst dich nicht teleportieren.
|
||||
Party.Teleport.Player=[[GREEN]]Du wurdest zu {0} teleportiert.
|
||||
Party.Teleport.Self=[[RED]]You can't teleport to yourself!
|
||||
Party.Teleport.Target=[[GREEN]]{0} hat sich zu dir teleportiert.
|
||||
Party.Unlocked=[[GRAY]]Gruppe ist entsperrt.
|
||||
|
||||
|
@ -402,6 +402,7 @@ Commands.Invite.Accepted=[[GREEN]]Invite Accepted. You have joined party {0}
|
||||
Commands.Invite.Success=[[GREEN]]Invite sent successfully.
|
||||
Commands.Leaderboards=<skill> <page> [[RED]]- Leaderboards
|
||||
Commands.mcgod=[[RED]]- Toggle GodMode
|
||||
Commands.mchud.Invalid=[[RED]]That is not a valid HUD type.
|
||||
Commands.mcrank.Heading=[[GOLD]]-=PERSONAL RANKINGS=-
|
||||
Commands.mcrank.Overall=[[YELLOW]]Overall[[GREEN]] - [[GOLD]]Rank [[WHITE]]#[[GREEN]]{0}
|
||||
Commands.mcrank.Player=[[RED]]TARGET: [[WHITE]]{0}
|
||||
@ -441,6 +442,7 @@ 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}
|
||||
Commands.Usage.Player=player
|
||||
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.
|
||||
@ -469,6 +471,7 @@ Party.Player.Invalid=[[RED]]That is not a valid player.
|
||||
Party.Teleport.Dead=[[RED]]You can't teleport to a dead player.
|
||||
Party.Teleport.Hurt=[[RED]]You've been hurt in the last {0} seconds and cannnot teleport.
|
||||
Party.Teleport.Player=[[GREEN]]You have teleported to {0}.
|
||||
Party.Teleport.Self=[[RED]]You can't teleport to yourself!
|
||||
Party.Teleport.Target=[[GREEN]]{0} has teleported to you.
|
||||
Party.Unlocked=[[GRAY]]Party is unlocked
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user