Using the method this.getServiceManager().getAddonManager().disable(this);, you can disable either your own addon or any other addon passed as a parameter. The class must extend JavaAddon for this to work.
this.getServiceManager().getAddonManager().disable(this);
JavaAddon
ClanCreateEvent
Fired when a new clan is being created through the TreexClans system.
Addons can validate, modify, or cancel the creation process before the clan is registered.
When a player or script attempts to create a new clan.
β Yes
ClanDeleteEvent
Fired when a clan is about to be deleted or disbanded.
Addons can perform cleanup tasks, prevent deletion, or restore a previously cancelled deletion.
When a clan is scheduled for removal (manually or automatically).
Last updated 4 months ago