1
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)
2
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.3
Handle soft dependency
If Skills is optional, guard every usage with a null check.
4
Query player data
With a valid Check if a player meets a minimum skill requirementGet all skill values at onceRead stats (STR / DEX / INT)Read HP, Mana, and Stamina
api reference you can read and modify skill data for any online player.Check a player’s skill valueSkill name formats
All methods that accept askillName: String parameter are case-insensitive and treat spaces and underscores as interchangeable.
All four of the examples below refer to the same skill: