mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Locale, part 3
This commit is contained in:
parent
fcdf538368
commit
6991fa4907
@ -25,10 +25,10 @@ public class McabilityCommand implements CommandExecutor {
|
|||||||
PlayerProfile PP = Users.getProfile((Player) sender);
|
PlayerProfile PP = Users.getProfile((Player) sender);
|
||||||
|
|
||||||
if (PP.getAbilityUse()) {
|
if (PP.getAbilityUse()) {
|
||||||
sender.sendMessage(mcLocale.getString("mcPlayerListener.AbilitiesOff"));
|
sender.sendMessage(mcLocale.getString("Commands.Ability.Off"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(mcLocale.getString("mcPlayerListener.AbilitiesOn"));
|
sender.sendMessage(mcLocale.getString("Commands.Ability.On"));
|
||||||
}
|
}
|
||||||
|
|
||||||
PP.toggleAbilityUse();
|
PP.toggleAbilityUse();
|
||||||
|
@ -10,7 +10,7 @@ import com.gmail.nossr50.mcPermissions;
|
|||||||
import com.gmail.nossr50.commands.CommandHelper;
|
import com.gmail.nossr50.commands.CommandHelper;
|
||||||
import com.gmail.nossr50.locale.mcLocale;
|
import com.gmail.nossr50.locale.mcLocale;
|
||||||
|
|
||||||
//TODO: Rework this whole thing. It's ugly.
|
//TODO: Rework this whole thing. It's ugly. Also is missing all the admin & spout commands.
|
||||||
public class MccCommand implements CommandExecutor {
|
public class MccCommand implements CommandExecutor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -24,48 +24,48 @@ public class MccCommand implements CommandExecutor {
|
|||||||
player.sendMessage(ChatColor.RED + "---[]" + ChatColor.YELLOW + "mcMMO Commands" + ChatColor.RED + "[]---"); //TODO: Needs more locale.
|
player.sendMessage(ChatColor.RED + "---[]" + ChatColor.YELLOW + "mcMMO Commands" + ChatColor.RED + "[]---"); //TODO: Needs more locale.
|
||||||
|
|
||||||
if (mcPermissions.getInstance().party(player)) {
|
if (mcPermissions.getInstance().party(player)) {
|
||||||
player.sendMessage(mcLocale.getString("m.mccPartyCommands"));
|
player.sendMessage(mcLocale.getString("Commands.Party.Commands"));
|
||||||
player.sendMessage("/party " + mcLocale.getString("m.mccParty"));
|
player.sendMessage("/party " + mcLocale.getString("Commands.Party"));
|
||||||
player.sendMessage("/party q " + mcLocale.getString("m.mccPartyQ"));
|
player.sendMessage("/party q " + mcLocale.getString("Commands.Party.Quit"));
|
||||||
|
|
||||||
if (mcPermissions.getInstance().partyChat(player)) {
|
if (mcPermissions.getInstance().partyChat(player)) {
|
||||||
player.sendMessage("/p " + mcLocale.getString("m.mccPartyToggle"));
|
player.sendMessage("/p " + mcLocale.getString("Commands.Party.Toggle"));
|
||||||
}
|
}
|
||||||
|
|
||||||
player.sendMessage("/invite " + mcLocale.getString("m.mccPartyInvite"));
|
player.sendMessage("/invite " + mcLocale.getString("Commands.Party.Invite"));
|
||||||
player.sendMessage("/invite " + mcLocale.getString("m.mccPartyAccept"));
|
player.sendMessage("/invite " + mcLocale.getString("Commands.Party.Accept"));
|
||||||
|
|
||||||
if (mcPermissions.getInstance().partyTeleport(player)) {
|
if (mcPermissions.getInstance().partyTeleport(player)) {
|
||||||
player.sendMessage("/ptp " + mcLocale.getString("m.mccPartyTeleport"));
|
player.sendMessage("/ptp " + mcLocale.getString("Commands.Party.Teleport"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("m.mccOtherCommands"));
|
player.sendMessage(mcLocale.getString("Commands.Other"));
|
||||||
player.sendMessage("/mcstats " + ChatColor.RED + mcLocale.getString("m.mccStats"));
|
player.sendMessage("/mcstats " + mcLocale.getString("Commands.Stats"));
|
||||||
player.sendMessage("/mctop <skillname> <page> " + ChatColor.RED + mcLocale.getString("m.mccLeaderboards"));
|
player.sendMessage("/mctop " + mcLocale.getString("m.mccLeaderboards"));
|
||||||
|
|
||||||
if (mcPermissions.getInstance().mcAbility(player)) {
|
if (mcPermissions.getInstance().mcAbility(player)) {
|
||||||
player.sendMessage("/mcability " + ChatColor.RED + mcLocale.getString("m.mccToggleAbility"));
|
player.sendMessage("/mcability " + mcLocale.getString("Commands.ToggleAbility"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().adminChat(player)) {
|
if (mcPermissions.getInstance().adminChat(player)) {
|
||||||
player.sendMessage("/a " + ChatColor.RED + mcLocale.getString("m.mccAdminToggle"));
|
player.sendMessage("/a " + mcLocale.getString("Commands.AdminToggle"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().inspect(player)) {
|
if (mcPermissions.getInstance().inspect(player)) {
|
||||||
player.sendMessage("/inspect " + mcLocale.getString("m.mccInspect"));
|
player.sendMessage("/inspect " + mcLocale.getString("Commands.Inspect"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().mmoedit(player)) {
|
if (mcPermissions.getInstance().mmoedit(player)) {
|
||||||
player.sendMessage("/mmoedit " + mcLocale.getString("m.mccMmoedit"));
|
player.sendMessage("/mmoedit " + mcLocale.getString("Commands.mmoedit"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcPermissions.getInstance().mcgod(player)) {
|
if (mcPermissions.getInstance().mcgod(player)) {
|
||||||
player.sendMessage("/mcgod " + ChatColor.RED + mcLocale.getString("m.mccMcGod"));
|
player.sendMessage("/mcgod " + mcLocale.getString("Commands.mcgod"));
|
||||||
}
|
}
|
||||||
|
|
||||||
player.sendMessage(mcLocale.getString("m.mccSkillInfo"));
|
player.sendMessage(mcLocale.getString("Commands.SkillInfo"));
|
||||||
player.sendMessage("/mcmmo " + mcLocale.getString("m.mccModDescription"));
|
player.sendMessage("/mcmmo " + mcLocale.getString("Commands.ModDescription"));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -25,10 +25,10 @@ public class McgodCommand implements CommandExecutor {
|
|||||||
PlayerProfile PP = Users.getProfile((Player) sender);
|
PlayerProfile PP = Users.getProfile((Player) sender);
|
||||||
|
|
||||||
if (PP.getGodMode()) {
|
if (PP.getGodMode()) {
|
||||||
sender.sendMessage(mcLocale.getString("mcPlayerListener.GodModeDisabled"));
|
sender.sendMessage(mcLocale.getString("Commands.GodMode.Disabled"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(mcLocale.getString("mcPlayerListener.GodModeEnabled"));
|
sender.sendMessage(mcLocale.getString("Commands.GodMode.Enabled"));
|
||||||
}
|
}
|
||||||
|
|
||||||
PP.toggleGodMode();
|
PP.toggleGodMode();
|
||||||
|
@ -14,7 +14,7 @@ public class McmmoCommand implements CommandExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
String description = mcLocale.getString("mcMMO.Description", new Object[] { "mcc" });
|
String description = mcLocale.getString("mcMMO.Description");
|
||||||
String[] mcSplit = description.split(",");
|
String[] mcSplit = description.split(",");
|
||||||
|
|
||||||
for (String x : mcSplit) {
|
for (String x : mcSplit) {
|
||||||
|
@ -351,8 +351,6 @@ Woodcutting.Skillup=[[YELLOW]]Woodcutting skill increased by {0}. Total ({1})
|
|||||||
|
|
||||||
#ABILITIY
|
#ABILITIY
|
||||||
##generic
|
##generic
|
||||||
Ability.Generic.Off=Ability use toggled off
|
|
||||||
Ability.Generic.On=Ability use toggled on
|
|
||||||
Ability.Generic.Refresh=[[GREEN]]**ABILITIES REFRESHED!**
|
Ability.Generic.Refresh=[[GREEN]]**ABILITIES REFRESHED!**
|
||||||
Ability.Generic.Template.Lock=[[GRAY]]{0}
|
Ability.Generic.Template.Lock=[[GRAY]]{0}
|
||||||
Ability.Generic.Template=[[RED]]{0}: [[YELLOW]]{1}
|
Ability.Generic.Template=[[RED]]{0}: [[YELLOW]]{1}
|
||||||
@ -372,19 +370,21 @@ Combat.TouchedFuzzy=[[DARK_RED]]Touched Fuzzy. Felt Dizzy.
|
|||||||
#COMMANDS
|
#COMMANDS
|
||||||
##generic
|
##generic
|
||||||
mcMMO.Description=[[DARK_AQUA]]About the [[YELLOW]]mcMMO[[DARK_AQUA]] Project:,[[GOLD]]mcMMO is an [[RED]]open source[[GOLD]] RPG mod created in February 2011,[[GOLD]]by [[BLUE]]nossr50[[GOLD]]. The goal is to provide a quality RPG experience.,[[DARK_AQUA]]Tips:,[[GOLD]] - [[GREEN]]Use [[RED]]/mcc[[GREEN]] to see commands,[[GOLD]] - [[GREEN]]Type [[RED]]/SKILLNAME[[GREEN]] to see detailed skill info,[[DARK_AQUA]]Developers:,[[GOLD]] - [[GREEN]]nossr50 [[BLUE]](Project Lead),[[GOLD]] - [[GREEN]]GJ [[BLUE]](Senior Developer),[[GOLD]] - [[GREEN]]NuclearW [[BLUE]](Developer),[[DARK_AQUA]]Useful Links:,[[GOLD]] - [[GREEN]]issues.mcmmo.org[[GOLD]] Bug Reporting,[[GOLD]] - [[GREEN]]#mcmmo @ irc.esper.net[[GOLD]] IRC Chat,[[GOLD]] - [[GREEN]]http://bit.ly/H6XwFb[[GOLD]] Bukkit Forum Thread
|
mcMMO.Description=[[DARK_AQUA]]About the [[YELLOW]]mcMMO[[DARK_AQUA]] Project:,[[GOLD]]mcMMO is an [[RED]]open source[[GOLD]] RPG mod created in February 2011,[[GOLD]]by [[BLUE]]nossr50[[GOLD]]. The goal is to provide a quality RPG experience.,[[DARK_AQUA]]Tips:,[[GOLD]] - [[GREEN]]Use [[RED]]/mcc[[GREEN]] to see commands,[[GOLD]] - [[GREEN]]Type [[RED]]/SKILLNAME[[GREEN]] to see detailed skill info,[[DARK_AQUA]]Developers:,[[GOLD]] - [[GREEN]]nossr50 [[BLUE]](Project Lead),[[GOLD]] - [[GREEN]]GJ [[BLUE]](Senior Developer),[[GOLD]] - [[GREEN]]NuclearW [[BLUE]](Developer),[[DARK_AQUA]]Useful Links:,[[GOLD]] - [[GREEN]]issues.mcmmo.org[[GOLD]] Bug Reporting,[[GOLD]] - [[GREEN]]#mcmmo @ irc.esper.net[[GOLD]] IRC Chat,[[GOLD]] - [[GREEN]]http://bit.ly/H6XwFb[[GOLD]] Bukkit Forum Thread
|
||||||
|
Commands.Ability.Off=Ability use toggled [[RED]]off
|
||||||
|
Commands.Ability.On=Ability use toggled [[GREEN]]on
|
||||||
Commands.AdminChat.Off=Admin Chat only [[RED]]Off
|
Commands.AdminChat.Off=Admin Chat only [[RED]]Off
|
||||||
Commands.AdminChat.On=Admin Chat only [[GREEN]]On
|
Commands.AdminChat.On=Admin Chat only [[GREEN]]On
|
||||||
Commands.AdminToggle=- Toggle admin chat
|
Commands.AdminToggle=[[RED]]- Toggle admin chat
|
||||||
Commands.DoesNotExist= [[RED]]Player does not exist in the database!
|
Commands.DoesNotExist= [[RED]]Player does not exist in the database!
|
||||||
Commands.GodMode.Disabled=[[YELLOW]]mcMMO Godmode Disabled
|
Commands.GodMode.Disabled=[[YELLOW]]mcMMO Godmode Disabled
|
||||||
Commands.GodMode.Enabled=[[YELLOW]]mcMMO Godmode Enabled
|
Commands.GodMode.Enabled=[[YELLOW]]mcMMO Godmode Enabled
|
||||||
Commands.GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
Commands.GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||||
Commands.Inspect=[playername] [[RED]]- View detailed player info
|
Commands.Inspect=<player> [[RED]]- View detailed player info
|
||||||
Commands.Invite.Accepted=[[GREEN]]Invite Accepted. You have joined party {0}
|
Commands.Invite.Accepted=[[GREEN]]Invite Accepted. You have joined party {0}
|
||||||
Commands.Invite.Success=[[GREEN]]Invite sent successfully.
|
Commands.Invite.Success=[[GREEN]]Invite sent successfully.
|
||||||
Commands.Leaderboards=- Leaderboards
|
Commands.Leaderboards=<skillname> <page> [[RED]]- Leaderboards
|
||||||
Commands.mcgod=- God Mode
|
Commands.mcgod=[[RED]]- Toggle GodMode
|
||||||
Commands.mmoedit=[playername] [skill] [newvalue] [[RED]]- Modify target
|
Commands.mmoedit=<player> <skill> <newvalue> [[RED]] - Modify target
|
||||||
Commands.ModDescription=[[RED]]- Read brief mod description
|
Commands.ModDescription=[[RED]]- Read brief mod description
|
||||||
Commands.NoConsole=This command does not support console usage.
|
Commands.NoConsole=This command does not support console usage.
|
||||||
Commands.Other=[[GREEN]]--OTHER COMMANDS--
|
Commands.Other=[[GREEN]]--OTHER COMMANDS--
|
||||||
@ -393,22 +393,22 @@ Commands.Party.Chat.Off=Party Chat only [[RED]]Off
|
|||||||
Commands.Party.Chat.On=Party Chat only [[GREEN]]On
|
Commands.Party.Chat.On=Party Chat only [[GREEN]]On
|
||||||
Commands.Party.Commands=[[GREEN]]--PARTY COMMANDS--
|
Commands.Party.Commands=[[GREEN]]--PARTY COMMANDS--
|
||||||
Commands.Party.Invite.0=[[RED]]ALERT: [[GREEN]]You have received a party invite for {0} from {1}
|
Commands.Party.Invite.0=[[RED]]ALERT: [[GREEN]]You have received a party invite for {0} from {1}
|
||||||
Commands.Party.Invite.0=[[YELLOW]]Type [[GREEN]]/{0}[[YELLOW]] to accept the invite
|
Commands.Party.Invite.1=[[YELLOW]]Type [[GREEN]]/{0}[[YELLOW]] to accept the invite
|
||||||
Commands.Party.Invite=[player name] [[RED]]- Send party invite
|
Commands.Party.Invite=<player> [[RED]]- Send party invite
|
||||||
Commands.Party.Join=Joined Party: {0}
|
Commands.Party.Join=Joined Party: {0}
|
||||||
Commands.Party.Leave=[[RED]]You have left that party
|
Commands.Party.Leave=[[RED]]You have left that party
|
||||||
Commands.Party.Members=[[GREEN]]Party Members
|
Commands.Party.Members=[[GREEN]]Party Members
|
||||||
Commands.Party.None=[[RED]]You are not in a party.
|
Commands.Party.None=[[RED]]You are not in a party.
|
||||||
Commands.Party.Quit=[[RED]]- Leave your current party
|
Commands.Party.Quit=[[RED]]- Leave your current party
|
||||||
Commands.Party.Teleport=[party member name] [[RED]]- Teleport to party member
|
Commands.Party.Teleport=<player> [[RED]]- Teleport to party member
|
||||||
Commands.Party.Toggle=[[RED]] - Toggle Party Chat
|
Commands.Party.Toggle=[[RED]]- Toggle Party Chat
|
||||||
Commands.Party=[party name] [[RED]]- Create/Join designated party
|
Commands.Party=<party name> [[RED]]- Create/Join designated party
|
||||||
Commands.PowerLevel.Leaderboard=[[YELLOW]]--mcMMO[[BLUE]] Power Level [[YELLOW]]Leaderboard--
|
Commands.PowerLevel.Leaderboard=[[YELLOW]]--mcMMO[[BLUE]] Power Level [[YELLOW]]Leaderboard--
|
||||||
Commands.PowerLevel=[[DARK_RED]]POWER LEVEL: [[GREEN]]{0}
|
Commands.PowerLevel=[[DARK_RED]]POWER LEVEL: [[GREEN]]{0}
|
||||||
Commands.SkillInfo=[skillname] [[RED]]- View detailed information about a skill
|
Commands.SkillInfo=/<skillname> [[RED]]- View detailed information about a skill
|
||||||
Commands.Stats.Self=YOUR STATS
|
Commands.Stats.Self=YOUR STATS
|
||||||
Commands.Stats=- View your mcMMO stats
|
Commands.Stats=[[RED]]- View your mcMMO stats
|
||||||
Commands.ToggleAbility=- Toggle ability activation with right click
|
Commands.ToggleAbility=[[RED]]- Toggle ability activation with right click
|
||||||
mcMMO.MOTD=[[BLUE]]This server is running mcMMO {0} type [[YELLOW]]/{1}[[BLUE]] for help.
|
mcMMO.MOTD=[[BLUE]]This server is running mcMMO {0} type [[YELLOW]]/{1}[[BLUE]] for help.
|
||||||
mcMMO.NoInvites=[[RED]]You have no invites at this time
|
mcMMO.NoInvites=[[RED]]You have no invites at this time
|
||||||
mcMMO.NoPermission=[[DARK_RED]]Insufficient permissions.
|
mcMMO.NoPermission=[[DARK_RED]]Insufficient permissions.
|
||||||
@ -458,7 +458,7 @@ Commands.xplock.locked=[[GOLD]]Your XP BAR is now locked to {0}!
|
|||||||
Commands.xplock.unlocked=[[GOLD]]Your XP BAR is now [[GREEN]]UNLOCKED[[GOLD]]!
|
Commands.xplock.unlocked=[[GOLD]]Your XP BAR is now [[GREEN]]UNLOCKED[[GOLD]]!
|
||||||
Commands.xprate.over=[[RED]]mcMMO XP Rate Event is OVER!!
|
Commands.xprate.over=[[RED]]mcMMO XP Rate Event is OVER!!
|
||||||
Commands.xprate.proper=[[RED]]Proper usage to change the XP rate is /xprate <integer> <true/false>
|
Commands.xprate.proper=[[RED]]Proper usage to change the XP rate is /xprate <integer> <true/false>
|
||||||
Commands.xprate.proper2=[[RED]]Proper usage to reset the XP rate to default is /xprate reset
|
Commands.xprate.proper2=[[RED]]Proper usage to restore the XP rate to default is /xprate reset
|
||||||
Commands.xprate.proper3=[[RED]]Please specify true or false to indicate if this is an xp event or not
|
Commands.xprate.proper3=[[RED]]Please specify true or false to indicate if this is an xp event or not
|
||||||
Commands.xprate.started=[[GOLD]]XP EVENT FOR mcMMO HAS STARTED!
|
Commands.xprate.started=[[GOLD]]XP EVENT FOR mcMMO HAS STARTED!
|
||||||
Commands.xprate.started2=[[GOLD]]mcMMO XP RATE IS NOW {0}x!
|
Commands.xprate.started2=[[GOLD]]mcMMO XP RATE IS NOW {0}x!
|
||||||
|
Loading…
Reference in New Issue
Block a user