ManticDTC offers a robust API for developers wanting to hook into the plugin's core event systems and player statistics.
Ā» DTCAPI#getActiveEvents() // Returns a collection of all currently active Destroy The Core events (ActiveDTC objects).
Ā» DTCAPI#isEventActive(String) // Checks whether a specific core (by its internal key) is currently running.
Ā» DTCAPI#getActiveData(String) // Fetches the active event data (ActiveDTC) for a specific core key, if it is currently active.
Ā» DTCAPI#getCoreData(String) // Retrieves the underlying configuration data (SubDestroyTheCore) for a registered core.
Ā» DTCAPI#startEvent(SubDestroyTheCore, CommandSender) // Programmatically starts a specific DTC event and triggers the API start event.
Ā» DTCAPI#stopEvent(SubDestroyTheCore, CommandSender) // Programmatically force-ends an active DTC event.
Ā» DTCAPI#isDTCBlock(Block) // Evaluates whether a given block is the physical core block for any currently running event.
Ā» DTCAPI#getActiveByLocation(Location) // Returns the active event data (ActiveDTC) associated with a specific physical location, if one exists.
Ā» DTCAPI#getCoreByBlock(Block) // Retrieves the core configuration data (SubDestroyTheCore) associated with a specific block in the world.
Ā» DTCAPI#getWins(Player|UUID|OfflinePlayer) // Fetches the total number of recorded core wins for the specified player.
Ā» DTCAPI#addWins(UUID, long) // Adds a specified amount of wins to a player's overall statistics.
Once purchased you will need to join the discord (https://discord.mantic.dev) to claim your license which is required to run the plugin (license is then put in the config file).