MPUtils icon

MPUtils -----

Library for helping on developing minecraft spigot plugins.




[+] - Added
[•] - Changed



[+] - Added getPath method to MessageEnum interface.

[•] - MessageSender constructors that use messagesPath are now deprecated
----------, Oct 4, 2021

[+] - Added

[+] -
Added MessageSender class for managing messages, also contains message sending methods.
[+] - Added getString method for the new MessageSender class.
[+] - Added MessageEnum interface, intended to be implmeneted only by the enums that are passed to the MessageSender as a type parameter.

(Deleting previous updates and merging them)
----------, Sep 22, 2021

[+] - Added

[+] - Added getString method for the new MessageSender class.
----------, Sep 22, 2021

[+] - Added

[+] - Added MessageSender class for managing messages, also contains message sending methods.
----------, Sep 22, 2021

[+] - Added
[•] - Changed


[+] -
Added 2 new GUI classes: BorderPaginatedGUI (a paginated GUI with a border all around the outter slots), DynamicGUI (a GUI that dinamically updates its size depending on the number of items added to it, its type can also be either Simple or Paginated)
[+] - Added Navigation related classes: NavigationBar (a group of items that is shown in a GUI with the purpose of helping the final user navigate through the GUI), GUIButton (each of the elements present in a NavigationBar), Navigable (a GUI that has a Navigation bar and can have mor than one page), BorderGUINavigationBar (a special NavigationBar used only inBorderPaginatedGUIs)
[+] - Added a new event "GUIButtonClickEvent", extends GUIClickEvent, called when a GUIButton is clicked (take into consideration a GUIClickEvent will be called every time a GUIButtonClickEvent is called, you can check if a GUIClickEvent is fired at the same time as a GUIButtonClick event using GUIClickEvent#isButtonClick()).

[•] -
Moved and reorganized quite a fe classes from the GUI package:
- GUIType
- GUIClickEvent
- GUICloseEvent
- PlayersOnGUIsManager
[•] - Several methods and classes are now deprecated due to this changes.
[•] - Fixed bugs.
----------, Jul 2, 2021

[+] - Added
[•] - Changed


[+] -
Added 2 new GUI classes: BorderPaginatedGUI (a paginated GUI with a border all around the outter slots), DynamicGUI (a GUI that dinamically updates its size depending on the number of items added to it, its type can also be either Simple or Paginated)
[+] - Added Navigation related classes: NavigationBar (a group of items that is shown in a GUI with the purpose of helping the final user navigate through the GUI), GUIButton (each of the elements present in a NavigationBar), Navigable (a GUI that has a Navigation bar and can have mor than one page), BorderGUINavigationBar (a special NavigationBar used only inBorderPaginatedGUIs)
[+] - Added a new event "GUIButtonClickEvent", extends GUIClickEvent, called when a GUIButton is clicked (take into consideration a GUIClickEvent will be called every time a GUIButtonClickEvent is called, you can check if a GUIClickEvent is fired at the same time as a GUIButtonClick event using GUIClickEvent#isButtonClick()).

[•] -
Moved and reorganized quite a fe classes from the GUI package:
- GUIType
- GUIClickEvent
- GUICloseEvent
- PlayersOnGUIsManager
[•] - Several methods and classes are now deprecated due to this changes.
[•] - Fixed bugs.
----------, Jul 2, 2021

[+] - Added
[•] - Changed


[+] - Added reloading related classes ( Reloadable and ReloaderPlugin). Will make sure to add documentation on the wiki page on github.
[+] - Added StringUtils#colorizeString(String): Calls StringUtils#colorizeString(char, String) using the '&' as the color char.
[+] - Added itemToString(ItemStack) and stringToItem(String) methods in the MPItemStacks class.

[•] - The GUIClickEvent extends InventoryClickEvent and the GUICloseEvent extends InventoryCloseEvent, so now the fields and methods available in those events are now available for the GUI events.
[•] - Fixed bugs.
----------, Jun 9, 2021

[+] - Added
[•] - Changed


[+] - Added time related utility classes - TimeUtils, for time related methods and TimeUnit for convertig time units to ticks.


[•] - Renamed some packages (!!!!!) Please take this into consideration, server plugin and plugin dependency must be both either previous to 1.6.0 or posterior to 1.6.0.
[•] - Re-worked Cooldowns class entirely - Now cooldowns are stored to the cooldowns.yml file for cooldowns to persist across server restarts, they also can be initiated using an amount of time and a time unit from the TimeUnit class. Basically much better cooldowns system.
[•] - Fixed some GUIs related bugs and added some null checks.
----------, Jan 25, 2021

[+] - Added
[•] - Changed



[+] - Added Metrics with ability to toggle them off.
[+] - Added Abstract GUI class extended by PaginatedGUI and SimpleGUI, this way developers don't have to cast the Object to PaginatedGUI or SimpleGUI for trying to get the GUI size or title. Developers will still need to cast GUI to SimpleGUI or PaginatedGUI for doing some other specific stuff.
[+] - Added YamlFile class for simply creating YAML file in one line - this also makes it much simpler to reload/load/save YAML files, yo ucan check how this works on the plugin's github page (huge thanks to https://github.com/OcZi for handing me this class).


[•] - Fixed some serious bugs, better code overall.
[•] - Fixed lore lines duplicating when using MPItemStacks#replacePlaceholders.



NOTE: You can find some more info about my projects' trello table: https://trello.com/b/tT46N2bM/mp-projects
----------, Nov 21, 2020

[+] - Added

[+] - Added GUICloseEvent - Fired when a player closes a GUI
----------, Sep 8, 2020

[•] - Changed

[•] - Fixed not setting ItemMeta after modifying it on MPItemStacks#newItemStack()
----------, Sep 7, 2020

[+] - Added

[+] - Added cooldowns - Should add a player to a cooldown for a given amount of seconds (Not tested yet). Worth to mention, has a "getTimeLeft()" method.
----------, Sep 3, 2020

[+] - Added
[•] - Changed


[+] - Added MPItemStack class - will be loaded with ItemStack related methods. At the moment only 2.
[+] - Added newItemStack method to the MPItemStack class - This method creates an ItemStack that comes with colorized name and lore given by parameters.
[+] - Added replacePlaceholders method to the MPItemStack class - This method replaces every placeholder from a given map and searches and replaces them in the given item's display name and lore with their corresponding value in the map.



[•] - Fixed minor bugs.
[•] - Changed PaginatedGUI methods - they now use some MPItemStacks methods.
----------, Aug 29, 2020

[+] - Added
[•] - Changed

[+] -
Added the GUI object to the GUIClickEvent event - This will allow developers to get that specific GUI navBar items or any items inside it.
[+] - Updated the wiki page with some more info about how to use GUIs and how they work, go take a look at it!

[•] -
Fixed some bugs that would cause some error causing some parts of the plugin not to function correctly.
----------, Aug 23, 2020

Resource Information
Author:
----------
Total Downloads: 2,119
First Release: Aug 15, 2020
Last Update: Oct 4, 2021
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings