publicclassAPIExampleimplementsAmazingExtension { @OverridepublicStringextension_name() {return"My_Extension"; } @Overridepublicvoidload() {/* * * Things that should be performed while loading * * */// Adding listeneraddListener(new Listener());// Getting plugin instancePlugin amazingTitles =getPluginInstance();// Getting extension fileFile asFile =getAsFile();// Getting loaded listenersList<Listener> listeners =getListeners(); } @Overridepublicvoidunload() {/* * * Things that should be performed while unloading * (Listeners,Commands & Animations will be unloaded automatically) * * */ }}