Class Misc

java.lang.Object
studio.magemonkey.genesis.misc.Misc

public class Misc extends Object
  • Constructor Details

    • Misc

      public Misc()
  • Method Details

    • fixLore

      public static List<String> fixLore(List<String> itemData)
      Fix the lore from a StringList
      Parameters:
      itemData - the sting list
      Returns:
      fixed lore list
    • playSound

      public static void playSound(org.bukkit.entity.Player p, String sound)
      Play a sound for a player
      Parameters:
      p - the player to play the sound for
      sound - 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