AFKGuard allows you to detect even the most tricky AFK machines and cheats, by being fully configurable and accessible!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
435 B

3 years ago
package com.entryrise.afkguard.listeners;
import org.bukkit.Bukkit;
import com.entryrise.afkguard.Main;
public class ListenersMain {
public static void Enabler(boolean reload) {
if (!reload) {
registerEvents();
}
Bukkit.getLogger().info(" §e[§a✔§e] §fEvent-Listeners loaded");
}
private static void registerEvents() {
Bukkit.getServer().getPluginManager().registerEvents(new AFKListener(), Main.p);
}
}