Advertisement
iAero

Example Bukkit Event

Jul 14th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. @EventHandler // Tells the server you're working with the event handler.
  2. public void onJump(PlayerJumpEvent event) { // Creating a new method using the PlayerJumpEvent as the 'event'.
  3.     Player player = event.getPlayer(); // Tells the server what a 'player' is.
  4.     player.setHealth(20.0); // Health is divided by two. (which makes it into hearts)
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement