SkryptCoreAPI

SkryptCoreAPI

350 Downloads

A required API for all of my plugins made in 2017 and up. The API contains a collection of useful, separate, APIs for various repeating or version dependent code. It might sound to you as another unnecessary CPU eating resource, but the fact is, thanks to this API I'm being able to push updates and new content much more frequently than ever before and you, as a server owner, will almost never need to worry about updating my plugins again.

Everything that needs to be updated is this API. An automatic updater is in the works for the API, which will then also remove the need to keep track of this API, fully removing the need to watch out for plugin updates.

ACTIONBAR API
Easy-to-use API that provides methods to create ActionBar texts and send them to players. Supports color codes, durations and delays.

CHAT API
A simple API, used to send various types of messages, with color & formatting codes support, throughout the server.

COMMAND API
An easier and readable way of creating commands on the go. Each command has it's own class, making it more readable. Also, there is no longer a need for plugin.yml. This plugin registers the commands on run-time, which opens a few more possibilities that weren't possible before - such as configurable commands by the end-user.

GUI API
Provides a flexible and easy way to create GUIs. Each GUI has it's own class and it's own set of states that it listens to - start, open, build, click, close, and useful methods, such as calculations of the row of a specific slot, the position of that slot in a row and many more. It also includes an Input GUI, which is yet not that flexible, though.

HOLOGRAM API
Adds the possibility to create holograms (floating text in worldspace). They support color codes, are easy to use and each hologram can be shown either globally to everyone or to individual players. Also supports durations and delays.

ITEMSTACK API
This API makes it possible to save persistent data on ItemStacks. There are 10 data types that you can bind to ItemStack, which will follow the Item until it's destruction. This is very useful for custom items, magical items or to simply restrict usage of particular items only to their respective owners.

LOCALIZATION API
The API supports over 130 languages you can translate your plugins into. Each language file is stored directly inside your plugin's data folder in a folder you choose and can be added without updating the plugin. Meaning users of the plugin can create their own language packs and distribute them, as long as you allow it.

STORAGE API
Useful methods to store data, currently supports Flatfile and MySQL storage, but more are planned. Flatfile storage supports multiple configuration files with custom extensions (still YAML files, though.) and MySQL storage is handled via connection pools to provide a more advanced and faster access to the databases.

TITLE API
Adds methods to create title and subtitle texts and send those to individual players or the whole server. Supports color codes.