Search in sources :

Example 1 with VotiferEvent

use of com.Ben12345rocks.VotingPlugin.Events.VotiferEvent in project VotingPlugin by Ben12345rocks.

the class Main method registerEvents.

/**
 * Register events.
 */
private void registerEvents() {
    PluginManager pm = getServer().getPluginManager();
    pm.registerEvents(new PlayerJoinEvent(this), this);
    pm.registerEvents(new VotiferEvent(this), this);
    pm.registerEvents(new SignChange(this), this);
    pm.registerEvents(new BlockBreak(this), this);
    pm.registerEvents(new PlayerInteract(this), this);
    pm.registerEvents(new VotingPluginUpdateEvent(this), this);
    plugin.debug("Loaded Events");
}
Also used : PluginManager(org.bukkit.plugin.PluginManager) PlayerJoinEvent(com.Ben12345rocks.VotingPlugin.Events.PlayerJoinEvent) BlockBreak(com.Ben12345rocks.VotingPlugin.Events.BlockBreak) VotingPluginUpdateEvent(com.Ben12345rocks.VotingPlugin.Events.VotingPluginUpdateEvent) VotiferEvent(com.Ben12345rocks.VotingPlugin.Events.VotiferEvent) PlayerInteract(com.Ben12345rocks.VotingPlugin.Events.PlayerInteract) SignChange(com.Ben12345rocks.VotingPlugin.Events.SignChange)

Aggregations

BlockBreak (com.Ben12345rocks.VotingPlugin.Events.BlockBreak)1 PlayerInteract (com.Ben12345rocks.VotingPlugin.Events.PlayerInteract)1 PlayerJoinEvent (com.Ben12345rocks.VotingPlugin.Events.PlayerJoinEvent)1 SignChange (com.Ben12345rocks.VotingPlugin.Events.SignChange)1 VotiferEvent (com.Ben12345rocks.VotingPlugin.Events.VotiferEvent)1 VotingPluginUpdateEvent (com.Ben12345rocks.VotingPlugin.Events.VotingPluginUpdateEvent)1 PluginManager (org.bukkit.plugin.PluginManager)1