Package me.mrCookieSlime.Slimefun.api
Class Slimefun
java.lang.Object
me.mrCookieSlime.Slimefun.api.Slimefun
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 Summary
Modifier and TypeMethodDescriptionstatic booleanhasPermission(org.bukkit.entity.Player p, SlimefunItem item, boolean message) Deprecated.This method will soon be removed.static booleanisEnabled(org.bukkit.entity.Player p, SlimefunItem sfItem, boolean message) Deprecated.Please useSlimefunItem.isDisabledIn(org.bukkit.World)instead.
-
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 nullitem- the item to check, null returnstruemessage- whether a message should be sent to the player or not- Returns:
trueif the item is not null and if the player has the permission to use it,falseotherwise.
-
isEnabled
@Deprecated public static boolean isEnabled(org.bukkit.entity.Player p, SlimefunItem sfItem, boolean message) Deprecated.Please useSlimefunItem.isDisabledIn(org.bukkit.World)instead.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 nullsfItem- the item to check, not nullmessage- whether a message should be sent to the player or not- Returns:
trueif the item is enabled in the world the player is in,falseotherwise.
-