Class Slimefun

java.lang.Object
me.mrCookieSlime.Slimefun.api.Slimefun

@Deprecated public final class Slimefun extends Object
Deprecated.
This class is slowly getting stripped away in favour of a more object-oriented approach.
Provides a few static convenience methods.
Author:
TheBusyBiscuit, Walshy, Poslovitch
  • Method Details

    • hasPermission

      @Deprecated public static boolean hasPermission(org.bukkit.entity.Player p, SlimefunItem item, boolean message)
      Deprecated.
      This method will soon be removed.
      Checks if this player has the permission to use this item.
      Parameters:
      p - the player to check, not null
      item - the item to check, null returns true
      message - whether a message should be sent to the player or not
      Returns:
      true if the item is not null and if the player has the permission to use it, false otherwise.
    • isEnabled

      @Deprecated public static boolean isEnabled(org.bukkit.entity.Player p, SlimefunItem sfItem, boolean message)
      Deprecated.
      Checks if this item is enabled in the world this player is in.
      Parameters:
      p - the player to get the world he is in, not null
      sfItem - the item to check, not null
      message - whether a message should be sent to the player or not
      Returns:
      true if the item is enabled in the world the player is in, false otherwise.