Package studio.magemonkey.genesis.misc
Class Misc
java.lang.Object
studio.magemonkey.genesis.misc.Misc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFix the lore from a StringListstatic org.bukkit.inventory.ItemStackgetItemInMainHand(org.bukkit.entity.Player p) Get the item in the player's main handstatic voidPlay a sound for a player
-
Constructor Details
-
Misc
public Misc()
-
-
Method Details
-
fixLore
Fix the lore from a StringList- Parameters:
itemData- the sting list- Returns:
- fixed lore list
-
playSound
Play a sound for a player- Parameters:
p- the player to play the sound forsound- the sound to play
-
getItemInMainHand
public static org.bukkit.inventory.ItemStack getItemInMainHand(org.bukkit.entity.Player p) Get the item in the player's main hand- Parameters:
p- player to get item from- Returns:
- item
-