Class ChatUtils
java.lang.Object
me.wolfyscript.customcrafting.utils.ChatUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic me.wolfyscript.utilities.util.NamespacedKeygetInternalNamespacedKey(org.bukkit.entity.Player player, String s, String[] args)static me.wolfyscript.utilities.util.NamespacedKeygetNamespacedKey(org.bukkit.entity.Player player, String s, String[] args)static voidsendAttributeModifierManager(org.bukkit.entity.Player player)static voidsendCategoryDescription(org.bukkit.entity.Player player)static voidsendLoreManager(org.bukkit.entity.Player player)static voidsendRecipeItemLoadingError(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
NamespacedKeyused 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
NamespacedKeyused 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
-