AmazingTitles Core 2.0
  • ๐Ÿ’กWelcome
  • ๐Ÿ“œPlugin Details
  • ๐ŸงFunctions
    • Plugin Functions
    • Sending Animations
    • Sending Notifications
    • Sending Interactive Messages
    • HEX & Gradient colors
  • ๐ŸงจAnimations
    • NONE
    • PULSING
    • RAINBOW
    • SPLIT
    • WAVES
    • WORDS_SPLIT
    • BOUNCE
    • FADE_IN
    • FADE_IN_WRITER
    • FLASHING
    • FLASHING_SYMBOL_WRAP
    • FROM_BOTH_SIDES
    • FROM_RIGHT
    • FROM_LEFT
  • ๐Ÿ”Integrations
    • CMI Integration
  • ๐ŸŽƒExtensions
    • In Development ...
  • Plugin's API
    • Creating AmazingExtension
    • Creating Custom Animations
    • Creating Custom SubCommand
    • Other API stuff
Powered by GitBook
On this page
  1. Plugin's API

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");
PreviousCreating Custom SubCommand

Last updated 1 year ago