From be690962eeb7155a4652fcbb06a7709f0e0f1525 Mon Sep 17 00:00:00 2001 From: ile123ile Date: Fri, 22 Aug 2014 12:26:04 -0700 Subject: [PATCH] Added a way to get the skill manager of any type from an McMMOPlayer --- .../java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java index 060ce77ba..fb023a807 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java +++ b/src/main/java/com/gmail/nossr50/datatypes/player/McMMOPlayer.java @@ -189,6 +189,10 @@ public class McMMOPlayer { public WoodcuttingManager getWoodcuttingManager() { return (WoodcuttingManager) skillManagers.get(SkillType.WOODCUTTING); } + + public SkillManager getSkillManager(SkillType skillType) { + return skillManagers.get(skillType); + } /* * Abilities