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.
20 lines
435 B
20 lines
435 B
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);
|
|
}
|
|
|
|
}
|