mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Tweak mmoinfo
This commit is contained in:
parent
6b309f628a
commit
0577701fd7
@ -71,22 +71,10 @@ public class MmoInfoCommand implements TabExecutor {
|
|||||||
|
|
||||||
private void displayInfo(Player player, String subSkillName)
|
private void displayInfo(Player player, String subSkillName)
|
||||||
{
|
{
|
||||||
//Check to see if the skill exists in the new system
|
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.Header"));
|
||||||
AbstractSubSkill abstractSubSkill = InteractionManager.getAbstractByName(subSkillName);
|
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.SubSkillHeader", subSkillName));
|
||||||
if(abstractSubSkill != null)
|
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.DetailsHeader"));
|
||||||
{
|
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.OldSkill"));
|
||||||
/* New System Skills are programmable */
|
|
||||||
abstractSubSkill.printInfo(player);
|
|
||||||
//TextComponentFactory.sendPlayerUrlHeader(player);
|
|
||||||
} else {
|
|
||||||
/*
|
|
||||||
* Skill is only in the old system
|
|
||||||
*/
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.Header"));
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.SubSkillHeader", subSkillName));
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.DetailsHeader"));
|
|
||||||
player.sendMessage(LocaleLoader.getString("Commands.MmoInfo.OldSkill"));
|
|
||||||
}
|
|
||||||
|
|
||||||
for(SubSkillType subSkillType : SubSkillType.values())
|
for(SubSkillType subSkillType : SubSkillType.values())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user