use of com.bencodez.votingplugin.listeners.SignChange in project VotingPlugin by Ben12345rocks.
the class VotingPluginMain method registerEvents.
/**
* Register events.
*/
private void registerEvents() {
PluginManager pm = getServer().getPluginManager();
pm.registerEvents(new PlayerJoinEvent(this), this);
if (votifierLoaded) {
pm.registerEvents(new VotiferEvent(this), this);
}
pm.registerEvents(new PlayerVoteListener(this), this);
pm.registerEvents(new SignChange(this), this);
pm.registerEvents(new BlockBreak(this), this);
if (!plugin.getConfigFile().isDisableInteractEvent()) {
pm.registerEvents(new PlayerInteract(this), this);
}
pm.registerEvents(new VotingPluginUpdateEvent(this), this);
/*
* if (!NMSManager.getInstance().isVersion("1.12")) { pm.registerEvents(new
* PlayerCommandSendListener(this), this); }
*/
coolDownCheck = new CoolDownCheck(this);
pm.registerEvents(coolDownCheck, this);
plugin.debug("Loaded Events");
}
Aggregations