- To hook this plugin into your project with Maven, you just need to add to your pom.xml the repositories and dependencies below:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.AlbeMiglio</groupId>
<artifactId>TooManyPerms</artifactId>
<version>1.0.7</version>
</dependency>
These are the main configurations of the plugin. You can fully customize them as far as you prefer:
- Config File (config.yml)
- Messages File (messages.yml)
- Permissions File (permissions.yml)
- Punishments File (punishments.yml)
The plugin provides 3 different events, which are called when a player has got something he shouldn't have.
- UnfairOpDetectedEvent: it's called when someone is OP and is not allowed.
@EventHandler
public void onUnfairOpDetected(UnfairOpDetectedEvent event) {
Player player = event.getPlayer();
}
- UnfairPermsDetectedEvent: it's called when someone has a certain perm and shouldn't.
@EventHandler
public void onUnfairPermsDetected(UnfairPermsDetectedEvent event) {
Player player = event.getPlayer();
String permission = event.getPermission();
}
- UnfairGroupsDetectedEvent: it's called when someone is in a certain group and shouldn't.
@EventHandler
public void onUnfairGroupsDetected(UnfairGroupsDetectedEvent event) {
Player player = event.getPlayer();
String group = event.getGroup();
}