mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-23 18:55:11 +01:00
check the class is exist
This commit is contained in:
parent
d7dfa3e4ac
commit
157b028712
@ -259,9 +259,11 @@ public class AuthMe extends JavaPlugin {
|
||||
// Register events
|
||||
pm.registerEvents(new AuthMePlayerListener(this), this);
|
||||
// Try to register 1.8 player listeners
|
||||
ConsoleLogger.info("Trying to register bukkit 1.8 listeners, if an error is shown below please don't report it!");
|
||||
ConsoleLogger.info("It only means that you're using a previous version of the server.");
|
||||
pm.registerEvents(new AuthMePlayerListener18(this), this);
|
||||
try {
|
||||
Class.forName("org.bukkit.event.player.PlayerInteractAtEntityEvent");
|
||||
pm.registerEvents(new AuthMePlayerListener18(this), this);
|
||||
} catch (ClassNotFoundException ignore) {
|
||||
}
|
||||
pm.registerEvents(new AuthMeBlockListener(this), this);
|
||||
pm.registerEvents(new AuthMeEntityListener(this), this);
|
||||
pm.registerEvents(new AuthMeServerListener(this), this);
|
||||
|
Loading…
Reference in New Issue
Block a user