Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.bukkit.event.Listener;
- import com.vexsoftware.votifier.model.VotifierEvent;
- import com.vexsoftware.votifier.model.Vote;
- public class CustomEventListener implements Listener {
- @EventHandler(priority=EventPriority.NORMAL)
- public void onVotifierEvent(VotifierEvent event) {
- Vote vote = event.getVote();
- /*
- * Process Vote record as you see fit
- */
- }
- }
- public void onEnable() {
- [...]
- getServer().getPluginManager()
- .registerEvents(new CustomEventListener(), this);
- [...]
- }
- #failed to log entity event
- depends: [Votifier]
Advertisement
Add Comment
Please, Sign In to add comment