Class ChatUtils
java.lang.Object
me.wolfyscript.customcrafting.utils.ChatUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static me.wolfyscript.utilities.util.NamespacedKey
getInternalNamespacedKey(org.bukkit.entity.Player player, String s, String[] args)
static me.wolfyscript.utilities.util.NamespacedKey
getNamespacedKey(org.bukkit.entity.Player player, String s, String[] args)
static void
sendAttributeModifierManager(org.bukkit.entity.Player player)
static void
sendCategoryDescription(org.bukkit.entity.Player player)
static void
sendLoreManager(org.bukkit.entity.Player player)
static void
sendRecipeItemLoadingError(String namespace, String key, String type, Exception ex)
-
Constructor Details
-
ChatUtils
-
-
Method Details
-
checkPerm
-
checkPerm
public static boolean checkPerm(org.bukkit.command.CommandSender sender, String perm, boolean sendMessage) -
getInternalNamespacedKey
public static me.wolfyscript.utilities.util.NamespacedKey getInternalNamespacedKey(org.bukkit.entity.Player player, String s, String[] args)- Parameters:
player
- The player that inputted the values.s
- The input as a Stringargs
- The input as separate arguments (split by spaces)- Returns:
- The
NamespacedKey
used internally in CustomCrafting in the format namespace:key
-
getNamespacedKey
public static me.wolfyscript.utilities.util.NamespacedKey getNamespacedKey(org.bukkit.entity.Player player, String s, String[] args)- Parameters:
player
- The player that inputted the values.s
- The input as a Stringargs
- The input as separate arguments (split by spaces)- Returns:
- The
NamespacedKey
used in WolfyUtilities, to identify which plugin it's from, in the format customcrafting:namespace/key
-
sendCategoryDescription
public static void sendCategoryDescription(org.bukkit.entity.Player player) -
sendLoreManager
public static void sendLoreManager(org.bukkit.entity.Player player) -
sendAttributeModifierManager
public static void sendAttributeModifierManager(org.bukkit.entity.Player player) -
sendRecipeItemLoadingError
-