API

SuperiorSkyblock provides a powerful API, so you can make your own custom modules to the plugin, change behavior of the plugin, register custom commands and more! You can find the javadocs of the API here.

Basic Usage

All of the API methods can be accessed via the SuperiorSkyblockAPI class. The API contains lots of objects that are used as method parameters, and here I'll cover some of them:

SuperiorPlayer This object is used as a warpper to the known player objects of the Bukkit's API. It contains data about the player, states of modes (fly mode etc) and more. You can retrieve the object using SuperiorSkyblockAPI.getPlayer(<UUID>). Island This object is used to cache data about the islands on your server. Members, banned list, multipliers, upgrades and all of the other data is stored in this object. You can get the Island of a player by using SuperiorPlayer#getIsland(). If you want to get an Island in a specific location, you can use SuperiorSkyblockAPI.getGrid().getIslandAt(<Location>). GridManager The grid manager object handles all the islands on your server. If you want to interact with islands, get them from the top list or anything related to that, you should use this object.

Do not use methods that the Island object has (for example, the deleteIsland method), as it should only be used by the Island object itself.

Last updated