Removed getSkillLevel, it doesn't belong to SkillType

This commit is contained in:
bm01
2013-02-08 13:04:26 +01:00
parent 35f243a6e6
commit 6d9db06305
3 changed files with 4 additions and 14 deletions

View File

@ -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) {