mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Localize a string I missed last time...
This commit is contained in:
parent
8c7fd7b1a6
commit
b463e4ce6f
@ -43,14 +43,13 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
profile = Users.getProfile(player);
|
profile = Users.getProfile(player);
|
||||||
|
|
||||||
if (skill.equals(SkillType.ALL)) {
|
if (skill.equals(SkillType.ALL)) {
|
||||||
skillName = "all skills";
|
sender.sendMessage(LocaleLoader.getString("Commands.mmoedit.AllSkills.1", new Object[] { newValue }));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skillName = Misc.getCapitalized(skill.toString());
|
sender.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.1", new Object[] { Misc.getCapitalized(skill.toString()), newValue }));
|
||||||
}
|
}
|
||||||
|
|
||||||
profile.modifySkill(skill, newValue);
|
profile.modifySkill(skill, newValue);
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.1", new Object[] {skillName, newValue}));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sender.sendMessage(usage);
|
sender.sendMessage(usage);
|
||||||
@ -79,13 +78,6 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skill.equals(SkillType.ALL)) {
|
|
||||||
skillName = "all skills";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
skillName = Misc.getCapitalized(skill.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
newValue = Integer.valueOf(args[2]);
|
newValue = Integer.valueOf(args[2]);
|
||||||
McMMOPlayer mcmmoPlayer = Users.getPlayer(args[0]);
|
McMMOPlayer mcmmoPlayer = Users.getPlayer(args[0]);
|
||||||
|
|
||||||
@ -98,8 +90,16 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
profile.modifySkill(skill, newValue);
|
profile.modifySkill(skill, newValue);
|
||||||
mcmmoPlayer.getPlayer().sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.1", new Object[] {skillName, newValue}));
|
if (skill == SkillType.ALL) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.2", new Object[] {skillName, args[0]}));
|
mcmmoPlayer.getPlayer().sendMessage(LocaleLoader.getString("Commands.mmoedit.AllSkills.1", new Object[] { newValue }));
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.2", new Object[] { args[0] }));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skillName = Misc.getCapitalized(skill.toString());
|
||||||
|
|
||||||
|
mcmmoPlayer.getPlayer().sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.1", new Object[] { skillName, newValue }));
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.2", new Object[] { skillName, args[0] }));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
profile = new PlayerProfile(args[0], false); //Temporary Profile
|
profile = new PlayerProfile(args[0], false); //Temporary Profile
|
||||||
@ -112,7 +112,12 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
profile.modifySkill(skill, newValue);
|
profile.modifySkill(skill, newValue);
|
||||||
profile.save();
|
profile.save();
|
||||||
|
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.2", new Object[] {skillName, args[0]}));
|
if (skill == SkillType.ALL) {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.addlevels.AwardAll.2", new Object[] { args[0] }));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
sender.sendMessage(LocaleLoader.getString("Commands.mmoedit.Modified.2", new Object[] { Misc.getCapitalized(skill.toString()), args[0] }));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -430,6 +430,7 @@ Commands.mcrefresh.Success=[[RED]]{0}''s cooldowns have been refreshed.
|
|||||||
Commands.mcremove.Success=[[GREEN]]{0} was successfully removed from the database!
|
Commands.mcremove.Success=[[GREEN]]{0} was successfully removed from the database!
|
||||||
Commands.mctop.Tip=[[GOLD]]Tip: Use [[RED]]/mcrank[[GOLD]] to view all of your personal rankings!
|
Commands.mctop.Tip=[[GOLD]]Tip: Use [[RED]]/mcrank[[GOLD]] to view all of your personal rankings!
|
||||||
Commands.mmoedit=[player] <skill> <newvalue> [[RED]] - Modify target
|
Commands.mmoedit=[player] <skill> <newvalue> [[RED]] - Modify target
|
||||||
|
Commands.mmoedit.AllSkills.1=[[GREEN]]Your level in all skills was set to {1}!
|
||||||
Commands.mmoedit.Modified.1=[[GREEN]]Your level in {0} was set to {1}!
|
Commands.mmoedit.Modified.1=[[GREEN]]Your level in {0} was set to {1}!
|
||||||
Commands.mmoedit.Modified.2=[[RED]]{0} has been modified for {1}.
|
Commands.mmoedit.Modified.2=[[RED]]{0} has been modified for {1}.
|
||||||
Commands.mmoupdate.Start=[[GRAY]]Starting conversion...
|
Commands.mmoupdate.Start=[[GRAY]]Starting conversion...
|
||||||
|
Loading…
Reference in New Issue
Block a user