FunAdminAPI

About FunAdminAPI

FunAdminAPI is a resource for developers with a lot of fun tools. It can help to make more fun plugins.

API and how to use

1. createHologram()
Description: This will create a custom hologram at a location.
Usage:

FunAdminAPI.createHologram(location, text);

2. createInstantDetonateFirework()
Description: Make a firework explode instantly.
Usage:

FunAdminAPI.createInstantDetonateFirework(firework);

3. createSyncTeleportingHologramWithEntity()
Description: This will create a custom hologram that will keep teleporting to an entity.
Usage:

FunAdminAPI.createSyncTeleportingHologramWithEntity(entity, text);

4. getFunAdmin()
Description: This will get the main FunAdmin class so you can change the config.yml, commands, and more.
Usage (how to enable firework bow):

FunAdminAPI.getFunAdmin().getConfig().set("fireworkbow", true);
FunAdminAPI.getFunAdmin().saveConfig();

5. getRandomOnlinePlayer()
Description: Gets a random online player from the server.
Usage (create a new random online player):

Player player = FunAdminAPI.getRandomOnlinePlayer();

6. livingEntityMove()
Description: Allows you to make a living entity move.
Usage:

FunAdminAPI.livingEntityMove(livingEntity, targetLocation, speed);