Skip to content

Database, Placeholder and API

casqidev edited this page Jun 7, 2026 · 3 revisions

Database

Storage is selected from config.yml.

Available types:

  • YAML
  • SQLite
  • MySQL
  • MariaDB

SQLite is default and recommended for small/medium servers. MySQL or MariaDB is recommended for networks and larger servers.

PlaceholderAPI

Internal placeholders currently include:

  • %koth%
  • %kothname%
  • %mode%
  • %location%
  • %capturer%
  • %time%
  • %time_left%
  • %player%
  • %previous%
  • %capturer1%
  • %capturer2%
  • %capturer3%
  • %top1_points%
  • %top2_points%
  • %top3_points%
  • %my_points%

Developer API

MimiKoth exposes a simple public API through:

MimiKothAPI api = MimiKothAPI.get();

Example:

Koth koth = MimiKothAPI.get().getKoth("spawn");
MimiKothAPI.get().startKoth("spawn");
int points = MimiKothAPI.get().getPlayerPoints(player);

API Events

Available events:

  • KothStartEvent
  • KothEndEvent
  • KothCancelEvent
  • KothCaptureStartEvent
  • KothCaptureStopEvent
  • KothCaptureCompleteEvent
  • KothKingChangeEvent
  • KothPointsGainEvent
  • KothRewardGiveEvent

Example:

@EventHandler
public void onKothStart(KothStartEvent event) {
    // Example
}

Clone this wiki locally