How to use the API
Introduction
GroupSecurity API can be used to create custom security engines, or to integrate GroupSecurity with other plugins. This page will guide you through the process of using the API.
Adding the API to your project
maven
<repositories>
<repository>
<id>mikart</id>
<url></url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>eu.mikart.groupsecurity</groupId>
<artifactId>GroupSecurity-PLATFORM</artifactId>
<version>VERSION</version>
</dependency>
</dependencies>
Spigot & Paper
paper
Make GroupSecurity load before your plugin inside the paper-plugin.yml
like this:
dependencies:
server:
GroupSecurity:
load: BEFORE
Velocity
Mark GroupSecurity as a dependency in your main Velocity class like this:
@Plugin(id = "your-plugin", name = "Your Plugin", version = "1.0", dependencies = {
@Dependency(id = "groupsecurity")
})
What can I do with this API?
Follow to the next page to learn how to use the API.
Last updated on