-
Notifications
You must be signed in to change notification settings - Fork 0
Database, Placeholder and API
MimiKoth supports multiple storage providers. The storage type can be selected in config.yml.
- YAML
- SQLite
- MySQL
- MariaDB
- YAML → Testing and very small servers.
- SQLite → Recommended for small and medium-sized servers.
- MySQL → Recommended for large servers and networks.
- MariaDB → Recommended for large servers and networks.
By default, MimiKoth uses SQLite.
MimiKoth includes PlaceholderAPI support for KOTH information, player statistics, event data and leaderboard integrations.
%koth%
%koth_name%
%kothname%
%mode%
%mode_raw%
%location%
%world%
%x%
%y%
%z%
%center_x%
%center_y%
%center_z%
%min_x%
%min_y%
%min_z%
%max_x%
%max_y%
%max_z%
%capturer%
%dominator%
%king%
%capturer_points%
%dominator_points%
%king_points%
%current_points%
%time%
%time_left%
%remaining_time%
%remaining_seconds%
%elapsed_seconds%
%duration%
%duration_seconds%
%points_reward%
%capture_kill_points%
%event_interval%
%event_points%
%event_kill_points%
%top_winners%
%target_points%
%player%
%player_name%
%my_points%
%player_event_points%
Current KOTH: %koth%
Mode: %mode%
Capturer: %capturer%
Time Left: %time_left%
MimiKoth provides a public API designed for developers who want to integrate their plugins with MimiKoth.
The API allows access to:
- KOTH data
- Active events
- Player statistics
- Event listeners
- Event management
without interacting directly with MimiKoth's internal implementation.
Access the API through:
MimiKothAPI api = MimiKothAPI.get();Koth koth = MimiKothAPI.get().getKoth("spawn");List<Koth> koths = MimiKothAPI.get().getAllKoths();List<Koth> activeKoths = MimiKothAPI.get().getActiveKoths();MimiKothAPI.get().startKoth("spawn");MimiKothAPI.get().stopKoth("spawn");int points = MimiKothAPI.get().getPlayerPoints(player);Called when a KOTH starts.
Called when a KOTH ends normally.
Called when a KOTH is cancelled.
Called when a player starts capturing a KOTH.
Called when a player stops capturing a KOTH.
Called when a player successfully captures a KOTH.
Called when the current king changes.
Called when a player receives points from a KOTH event.
Called when a reward is given.
@EventHandler
public void onKothStart(KothStartEvent event) {
String kothName = event.getKoth().getName();
Bukkit.broadcastMessage(
"KOTH Started: " + kothName
);
}