Package studio.magemonkey.fusion.util
Class PlayerUtil
java.lang.Object
studio.magemonkey.fusion.util.PlayerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetPermOption(org.bukkit.entity.Player player, String permission) Attempts to get the numeric value of the permission starting with 'permission'
For example, if the player has 'perm.test.5' and 'perm.test' is passed in, 5 will be returned.static Collection<org.bukkit.inventory.ItemStack> getPlayerItems(org.bukkit.inventory.InventoryHolder player) static doublegetProfessionExpBonusThroughPermissions(org.bukkit.entity.Player player, String profession)
-
Constructor Details
-
PlayerUtil
public PlayerUtil()
-
-
Method Details
-
getPermOption
Attempts to get the numeric value of the permission starting with 'permission'
For example, if the player has 'perm.test.5' and 'perm.test' is passed in, 5 will be returned. If the permission is not set, or the last part is non-numeric, 0 will be returned.- Parameters:
player- The player to testpermission- The permission to test- Returns:
- Number representing permission
-
getProfessionExpBonusThroughPermissions
public static double getProfessionExpBonusThroughPermissions(org.bukkit.entity.Player player, String profession) -
getPlayerNames
-
getPlayerItems
public static Collection<org.bukkit.inventory.ItemStack> getPlayerItems(org.bukkit.inventory.InventoryHolder player)
-