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
  • Implementing & using interface
  • extension.yml
  1. Plugin's API

Creating AmazingExtension

How to create AmazingExtension

Implementing & using interface

public class APIExample implements AmazingExtension {
	
	
	@Override
	public String extension_name() {
		return "My_Extension";
	}
	
	@Override
	public void load() {
		
		/*
		*
		* Things that should be performed while loading
		*
		* */
		
		// Adding listener
		addListener(new Listener());
		
		// Getting plugin instance
		Plugin amazingTitles = getPluginInstance();
		
		// Getting extension file
		File asFile = getAsFile();
		
		// Getting loaded listeners
		List<Listener> listeners = getListeners();
		
		
	}
	
	@Override
	public void unload() {
		
		/*
		*
		* Things that should be performed while unloading
		* (Listeners,Commands & Animations will be unloaded automatically)
		*
		* */
		
	}
	
}

extension.yml

Your class must implements AmazingExtension. (Wrap this file into your .jar file)

Class: sk.m3ii0.amazingtitles.extension.summer.Main
PreviousIn Development ...NextCreating Custom Animations

Last updated 1 year ago