Add Skills as a dependency
Add the Skills plugin jar to your project as a Then declare the dependency relationship in your
compileOnly dependency. Because the jar is not published to a public Maven repository, reference it from your local files or a file-system repository.build.gradle.kts
plugin.yml. Use depend if your plugin cannot function without Skills, or softdepend if Skills is optional.plugin.yml (hard dependency)
plugin.yml (soft dependency)
Obtain the API instance
The API is registered with Bukkit’s
ServicesManager. Retrieve it once during onEnable.registration is null if Skills is not loaded. provider returns the live SkillsAPI implementation.Skill name formats
All methods that accept askillName: String parameter are case-insensitive and treat spaces and underscores as interchangeable.
| Format | Example |
|---|---|
| Display name (title case) | "Swordsmanship", "Mace Fighting" |
| Enum name (upper snake case) | "SWORDSMANSHIP", "MACE_FIGHTING" |
| Lower case with spaces | "mace fighting" |
| Lower case with underscores | "mace_fighting" |