Other API stuff

Learn what else you can do with the API

/*
* 
* Base
* 
* */
 
// Reloading AmazingTitles
AmazingTitles.reloadPlugin();
 
// Reloading AmazingTitles (With command-sender who receives message)
AmazingTitles.reloadPlugin(commandSender);
 
/*
* 
* Extensions
* 
* */
 
// Getting enabled extension names
AmazingTitles.getLoadedExtensionNames();
 
// Getting enabled extension file names
AmazingTitles.getLoadedExtensionFileNames();
 
// Loading extension with the API
AmazingTitles.loadExtension(amazingExtension);
 
// Unloading extension with the API
AmazingTitles.unloadExtension("extensionName");
 
// Registering extension listener
AmazingTitles.registerExtensionListener(extension, listener);
 
// Getting extension listeners
AmazingTitles.getExtensionListeners("extensionName");
 
// Unregistering all extension listeners
AmazingTitles.unregisterExtensionListeners("extensionName");
 
// Unloading all extensions
AmazingTitles.unloadAllExtensions();
 
/*
* 
* System
* 
* */
 
// Executing command
AmazingTitles.executeAmazingTitlesCommand("at sendAnimation ...");
 
/*
* 
* Command Handlers
* 
* */
 
// Registering command handler
AmazingTitles.registerCommandHandler("commandArgument", handler);
 
// Unregistering command handler
AmazingTitles.unregisterCommandHandler("commandArgument");
 
/*
* 
* Animations
* 
* */
 
// Registering custom animation
AmazingTitles.registerCustomAnimation("animationName", animationBuilder);
 
// Unregistering custom animation
AmazingTitles.unregisterCustomAnimation("animationName");
 
// Getting custom animation
AmazingTitles.getCustomAnimation("animationName");
 
// Does custom animation exist?
AmazingTitles.isCustomAnimationExists("animationName");
 
// Is custom animation enabled?
AmazingTitles.isCustomAnimationEnabled("animationName");
 
// Getting all animations
AmazingTitles.getAnimations();
 
// Getting all animation names
AmazingTitles.getAnimationNames();
 
// Broadcasting animation
AmazingTitles.broadcastAnimation("animationName", componentArguments, "args1", "arg2", ...);
 
// Sending animation to players
AmazingTitles.sendAnimation("animationName", componentArguments, animationArguments[], playersCollection);
 
/*
* 
* Animation Components
* 
* */
 
// Inserting your component
AmazingTitles.insertAnimation(player, animationComponent);
 
// Getting component by player/uuid
AmazingTitles.getAnimationBy(uuid/player);
 
// Removing animation
AmazingTitles.removeAnimation(player/uuid);
 
// Has this player animation?
AmazingTitles.hasAnimation(player/uuid);
 
// Removing animation from the cache
AmazingTitles.removeAnimationFromCache(playersUuid);
 
/*
* 
* Smart Bar
* 
* */
 
// Getting players Smart-Bar
AmazingTitles.getSmartBar(player);
 
// Broadcasting notification
AmazingTitles.broadcastNotification(smartNotificationObject);
 
// Sending notification
AmazingTitles.sendNotification(smartNotificationObject, players);
 
// Hiding Smart-Bar
AmazingTitles.hideSmartBar(player);
 
// Showing Smart-Bar
AmazingTitles.showSmartBar(player);
 
/*
* 
* Messages
* 
* */
 
// Getting BaseComponent[] from raw message
AmazingTitles.getInteractiveMessageFromRaw("my raw message");
 
// Sending interactive message
AmazingTitles.sendInteractiveMessage("my raw message", playersCollection);
 
// Broadcasting interactive message
AmazingTitles.broadcastInteractiveMessage("my raw message");

Last updated