Template Plugin - Template for plugin creation 1.0.0

Template for plugin creation - 1.8 - 1.18

  1. More function in ZUtils

    same(ItemStack stack, String name) : return true if the ItemStack are the same
    same(Location l, Location l2) : return true if the Location are the same
    contains(ItemStack stack, String name) : return true if the name of the itemstack contains the string
    removeItemInHand(Player player, int how) : remove item in hand
    teleport(Player player, int delay, Location location) : player player
  2. Pagination update

    You can easily make list or map pagination

    • Create a pagination
    Code (Java):

    Pagination<T> pagination = new Pagination<T>();
    • Simple pagination
    Code (Java):

    List<T> list = pagination.paginate(List<T> list, int size, int page)
    List<T> list = pagination.paginate(Map<?, T> map, int size, int page)
    • Reverse pagination
    Code (Java):

    List<T> list = pagination.paginateReverse(List<T> list, int size,...
  3. [] Fix InventoryManager - Add getMaterial

    - Fixed an error when creating an inventory
    - Added the getMaterial (int id) to scour the material according to the id, works in all versions of minecraft
  4. [] Add getFormatLongDays in TimerBuilder

    Add getFormatLongDays in TimerBuilder