Skip to content

Instantly share code, notes, and snippets.

@tehbeard
Created August 17, 2011 01:18
Show Gist options
  • Save tehbeard/1150586 to your computer and use it in GitHub Desktop.
Save tehbeard/1150586 to your computer and use it in GitHub Desktop.
getServer().getPluginManager().registerEvent(Type.BLOCK_BREAK, sbl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.BLOCK_PLACE, sbl,Priority.Monitor,this);
//player listener
StatPlayerListener spl = new StatPlayerListener();
getServer().getPluginManager().registerEvent(Type.PLAYER_CHAT, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_DROP_ITEM, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_FISH, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_INTERACT_ENTITY, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_INTERACT, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_KICK, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_LOGIN, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_PRELOGIN, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_QUIT, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_MOVE, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_PICKUP_ITEM, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_PORTAL, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_TELEPORT, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_TOGGLE_SNEAK, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_BUCKET_EMPTY, spl,Priority.Monitor,this);
getServer().getPluginManager().registerEvent(Type.PLAYER_BUCKET_FILL, spl,Priority.Monitor,this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment