mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-23 15:50:30 +02:00
Master Angler reworked
This commit is contained in:
@@ -154,6 +154,17 @@ public class RankUtils {
|
||||
return getRank(player, abstractSubSkill) >= rank;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current rank of the subskill for the player
|
||||
* @param mmoPlayer The player in question
|
||||
* @param subSkillType Target subskill
|
||||
* @return The rank the player currently has achieved in this skill. -1 for skills without ranks.
|
||||
*/
|
||||
public static int getRank(McMMOPlayer mmoPlayer, SubSkillType subSkillType)
|
||||
{
|
||||
return getRank(mmoPlayer.getPlayer(), subSkillType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current rank of the subskill for the player
|
||||
* @param player The player in question
|
||||
|
Reference in New Issue
Block a user