Schiarizzi

votifier_listener_schiarizzi

Jan 25th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import org.bukkit.event.Listener;
  2. import com.vexsoftware.votifier.model.VotifierEvent;
  3. import com.vexsoftware.votifier.model.Vote;
  4.  
  5. public class CustomEventListener implements Listener {
  6.  
  7. @EventHandler(priority=EventPriority.NORMAL)
  8. public void onVotifierEvent(VotifierEvent event) {
  9. Vote vote = event.getVote();
  10.  
  11. /*
  12. * Process Vote record as you see fit
  13. */
  14. }
  15. }
  16.  
  17. public void onEnable() {
  18. [...]
  19. getServer().getPluginManager()
  20. .registerEvents(new CustomEventListener(), this);
  21. [...]
  22. }
  23. #failed to log entity event
  24. depends: [Votifier]
Advertisement
Add Comment
Please, Sign In to add comment