TheAPI 5.9.3

Details

  • Filename
    TheAPI.jar
  • Uploaded by
  • Uploaded
    Mar 10, 2021
  • Size
    527.55 KB
  • Downloads
    17
  • MD5
    d208b0e61cc3ce78b5882a1785ad3b1b

Supported Bukkit Versions

  • 1.16
  • 1.15
  • 1.14
  • 1.13
  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8.1
  • 1.8
  • 1.8.3
  • 1.7.4

Changelog

+ Added Metrics
+ New ChatMessage class
+ Improved registering of custom events via TheAPI
+ Fixed bug in HoverMessage class with "uknown" color
+ Added new StringUtils#getLastColors(String) method (With HEX support)
+ Improved GUIs click handler
+ Added new AnvilGUI gui type (Constructor: AnvilGUI(String title, Player... player)
+ Changed return of GUI#getPlayers method from List<Player> to the Collection<Player>
+ New method GUI#getContainer, returns opened Container of player (NMS part)
+ New look like of TheAPI Info command (Removed Worlds & Players)
+ Fixed HoverMessage#setClickEvent method
+ Fixed errors on startup
+ Fixed TheAPI#getUser method for servers with online-mode
+ Fully async GUIs
- Changed GUI#onClick(Player, GUI, org.bukkit.event.inventory.ClickType method values to the GUI#onClick(Player, GUI, me.devtec.theapi.guiapi.GUI.ClickType

+ Fixed StringUtils#colorizeMap/Array.. methods
+ Fixed errors of GUI#close() method
+ Fixed errors on loading plugin
+ Added new methods to the Data class:

  • boolean existsKey(String pathKey)
  • boolean setIfAbsent(String path, Object value)

+ Improved Async & Sync tasks handler (Scheduler.class)
+ Improved methods getServer, getServerThread and postToMainThread(Runnable) methods in the NMSAPI class
+ Optimized ChatEvent, BlockBreak and BlockPlace events (Special thanks to @mattrobb for report this bug) - PlayerBanlist
+ Reduced spam in console for Java 11 - 14 with reason "Warning nashorn engine is planned to be removed from a future jdk release"
+ Optimized EntityMoveEvent
+ Improved TheAPI custom event handler & processor
+ Improved ServerListPingEvent
+ To the class PlayerProfile added new methods:

  • getUUID
  • getName
  • setUUID(UUID)
  • setName(String)

+ Class PlayerProfile have new constructors:

  • PlayerProfile(String, UUID)
  • PlayerProfile(String)
  • PlayerProfile(UUID)
  • PlayerProfile()

+ Added new option to the Config.yml "Options.SocketsSpeed"
- Removed TheAPI#isOlder_9 method (Use method TheAPI#isOlderThan(9))
+ Fixed PacketListener#unregister method
+ Improved /TheAPI PluginManager command (No longer required case sensetive for plugin names)
- Removed PlayerJumpEvent
- Changed method return of method getItemGUIs from HashMap to Map
+ Opening & closing of GUIs now can be triggered asynchronous
+ Added new methods to the GUI class:

  • getPlayers
  • hasOpen(Player)
  • setTitle(String)
  • getTitle

+ Fixed ItemCreatorAPI (Attributes - Can't cast HashMap to Multimap)
+ Improved Unbreakable flag for items created by ItemCreatorAPI (No longer adding unused Lore, now for CraftBukkit using item NBT, for Spigot using Spigot unbreakable version)
- Removed PlayerItemBreakEvent (Reason above)
+ Added new EmptyItemGUI class new EmptyItemGUI(ItemStack) - Without actions
+ Added new static fields (helpers) to the GUI class:

  • LINES_6 = 54
  • LINES_5 = 45
  • LINES_4 = 36
  • LINES_3 = 27
  • LINES_2 = 18
  • LINES_1 = 9

+ Added new methods to the Ref class:

  • invokeStatic(Class, String, Object... val)
  • invokeStatic(Method, Object... val)
  • getStatic(Class, String)
  • getStatic(Field)

+ Added new methods to the NMSAPI class:

  • getNBT(ItemStack)
  • getNBT(Object itemStack)
  • parseNBT(String)
  • setNBT(ItemStack, String)
  • setNBT(ItemStack, Object nbt)
  • setNBT(Object itemStack, Object nbt)
  • asNMSItem(ItemStack)
  • asBukkitItem(OBject itemStack)

+ Added new class NBTEdit, constructors:

  • NBTEdit(ItemStack)
  • NBTEdit(Object nbt)

+ Fixed Scheduler (Cancelling tasks - loops)
+ The scheduler is now formed by a queue for tasks
+ New method in Scheduler & Tasker: repeatingTimes(long delay, long period, long times, Runnable runnable, Runnable onFinish)
- Removed PlayerVanishEvent class
- Removed from Events automatic vanish
- Removed canSee, hasVanish setVanish methods from TheAPI
+ Added Auto-Clearing of inactive users (Period can be edited in config)
+ Added Caching of player names & uuids
- Removed many and many methods from NMSAPI (Unused methods)
+ Fixed registering of other plugins not based on TheAPI on the server version Paper 1.8.8
+ Fixed SimpleScore.class method addLines(List<String>)
+ Removed debug for Paper 1.8.8
+ Fixed kick from the server on the server version Paper 1.8.8 (TabList)

+ Fixed names of custom events "ClientReceiveMessageEvent" and "ServerReceiveMessageEvent"


... Many of changes, read https://www.spigotmc.org/resources/72679/updates