|
@@ -4,7 +4,6 @@ import org.bukkit.entity.Player;
|
|
|
|
|
|
import com.gmail.nossr50.config.Config;
|
|
|
import com.gmail.nossr50.util.Permissions;
|
|
|
-import com.gmail.nossr50.util.Users;
|
|
|
|
|
|
public enum SkillType {
|
|
|
ACROBATICS(Config.getInstance().getLevelCapAcrobatics(), Config.getInstance().getFormulaMultiplierAcrobatics()),
|
|
@@ -129,17 +128,6 @@ public enum SkillType {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Get the skill level for this skill.
|
|
|
- *
|
|
|
- * @param player The player to check
|
|
|
- * @return the player's skill level
|
|
|
- */
|
|
|
- public int getSkillLevel(Player player) {
|
|
|
- // TODO: Child skills aren't handled here
|
|
|
- return Users.getPlayer(player).getProfile().getSkillLevel(this);
|
|
|
- }
|
|
|
-
|
|
|
// TODO: This is a little "hacky", we probably need to add something to distinguish child skills in the enum, or to use another enum for them
|
|
|
public boolean isChildSkill() {
|
|
|
switch (this) {
|