Search in sources :

Example 1 with VotiferEvent

use of com.bencodez.votingplugin.listeners.VotiferEvent 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");
}
Also used : PluginManager(org.bukkit.plugin.PluginManager) PlayerJoinEvent(com.bencodez.votingplugin.listeners.PlayerJoinEvent) BlockBreak(com.bencodez.votingplugin.listeners.BlockBreak) PlayerVoteListener(com.bencodez.votingplugin.listeners.PlayerVoteListener) VotingPluginUpdateEvent(com.bencodez.votingplugin.listeners.VotingPluginUpdateEvent) VotiferEvent(com.bencodez.votingplugin.listeners.VotiferEvent) PlayerInteract(com.bencodez.votingplugin.listeners.PlayerInteract) SignChange(com.bencodez.votingplugin.listeners.SignChange) CoolDownCheck(com.bencodez.votingplugin.cooldown.CoolDownCheck)

Aggregations

CoolDownCheck (com.bencodez.votingplugin.cooldown.CoolDownCheck)1 BlockBreak (com.bencodez.votingplugin.listeners.BlockBreak)1 PlayerInteract (com.bencodez.votingplugin.listeners.PlayerInteract)1 PlayerJoinEvent (com.bencodez.votingplugin.listeners.PlayerJoinEvent)1 PlayerVoteListener (com.bencodez.votingplugin.listeners.PlayerVoteListener)1 SignChange (com.bencodez.votingplugin.listeners.SignChange)1 VotiferEvent (com.bencodez.votingplugin.listeners.VotiferEvent)1 VotingPluginUpdateEvent (com.bencodez.votingplugin.listeners.VotingPluginUpdateEvent)1 PluginManager (org.bukkit.plugin.PluginManager)1