Package me.kzlyth.api


package me.kzlyth.api
Main API package for Zenith-Mod.

This package provides the public API for interacting with Zenith-Mod programmatically. External plugins should use the classes and interfaces in this package to integrate with Zenith-Mod functionality.

Database Compatibility: The entire API is fully compatible with H2, SQLite, MySQL, and MariaDB databases. All database operations automatically adapt to the configured database type from the configuration file (config.yml). The database type is configured via the database.type setting, which accepts: h2, sqlite, mysql, or mariadb.

To get started, use ZenithAPI.getInstance() to obtain an instance of the main API class.

Example usage:


 import me.kzlyth.api.ZenithAPI;
 
 public class MyPlugin extends JavaPlugin {
     @Override
     public void onEnable() {
         ZenithAPI api = ZenithAPI.getInstance();
         if (api != null && api.isAvailable()) {
             getLogger().info("Zenith-Mod API version: " + api.getVersion());
         }
     }
 }
 

Note: This API is subject to change. Always check the version compatibility when using the API.

Seit:
1.2.3
Autor:
Zenith-Studios