Class PlayerUtil

java.lang.Object
studio.magemonkey.fusion.util.PlayerUtil

public class PlayerUtil extends Object
  • Constructor Details

    • PlayerUtil

      public PlayerUtil()
  • Method Details

    • getPermOption

      public static int getPermOption(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. If the permission is not set, or the last part is non-numeric, 0 will be returned.
      Parameters:
      player - The player to test
      permission - The permission to test
      Returns:
      Number representing permission
    • getProfessionExpBonusThroughPermissions

      public static double getProfessionExpBonusThroughPermissions(org.bukkit.entity.Player player, String profession)
    • getPlayerNames

      public static List<String> getPlayerNames()
    • getPlayerItems

      public static Collection<org.bukkit.inventory.ItemStack> getPlayerItems(org.bukkit.inventory.InventoryHolder player)