Skip to content

AlbeMiglio/TooManyPerms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An advanced protection plugin, use it to punish people who have too many permissions!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages