Skip to content

Latest commit

 

History

History
60 lines (54 loc) · 2.6 KB

README.md

File metadata and controls

60 lines (54 loc) · 2.6 KB

TooManyPerms

Build Status License GitHub All Releases Discord Rating Donate

Import with Maven

  • 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>

Configuration files

These are the main configurations of the plugin. You can fully customize them as far as you prefer:

Developer API

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();  
}