mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-25 08:35:27 +02:00
Changed AbilityTypes from enum to constants
This commit is contained in:
@@ -97,7 +97,7 @@ public class SkillresetCommand implements TabExecutor {
|
||||
List<String> playerNames = CommandUtils.getOnlinePlayerNames(sender);
|
||||
return StringUtil.copyPartialMatches(args[0], playerNames, new ArrayList<String>(playerNames.size()));
|
||||
case 2:
|
||||
return StringUtil.copyPartialMatches(args[1], SkillType.skillNames, new ArrayList<String>(SkillType.skillNames.size()));
|
||||
return StringUtil.copyPartialMatches(args[1], SkillType.getSkillNames(), new ArrayList<String>(SkillType.getSkillNames().size()));
|
||||
default:
|
||||
return ImmutableList.of();
|
||||
}
|
||||
@@ -148,7 +148,7 @@ public class SkillresetCommand implements TabExecutor {
|
||||
|
||||
protected void editValues(Player player, PlayerProfile profile, SkillType skill) {
|
||||
if (skill == null) {
|
||||
for (SkillType skillType : SkillType.nonChildSkills) {
|
||||
for (SkillType skillType : SkillType.getNonChildSkills()) {
|
||||
handleCommand(player, profile, skillType);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user