PublicKit
getInstance() never returns null, but it cannot promise that PerPlayerKit has finished loading its kits. Call the API from an event handler or a command, not from your own onEnable().Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Every method on the PerPlayerKit API singleton, and the fields of PublicKit.
import dev.noah.perplayerkit.API;
API api = API.getInstance();
| Method | Returns | Does |
|---|---|---|
API.getInstance() | API | The . Creates it if it does not exist, so it is never null. |
api.getPublicKits() | List<PublicKit> | A copy of the configured public kits. |
api.loadPublicKit(Player, PublicKit) | void | Applies a public kit to an online player, silently. No message, no broadcast. |
| Field | Type | Is |
|---|---|---|
id | String | The kit id, the key under publickits in config.yml |
name | String | The display name |
icon | org.bukkit.Material | The icon shown in menus |
getInstance() never returns null, but it cannot promise that PerPlayerKit has finished loading its kits. Call the API from an event handler or a command, not from your own onEnable().Was this page helpful?