h31ix

Untitled

Feb 20th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. package bdking;
  2.  
  3. import java.io.IOException;
  4. import org.bukkit.Server;
  5. import org.bukkit.event.EventHandler;
  6. import org.bukkit.event.EventPriority;
  7. import org.bukkit.event.player.PlayerLoginEvent;
  8. import org.bukkit.plugin.PluginManager;
  9. import org.bukkit.plugin.java.JavaPlugin;
  10.  
  11. public class Main extends JavaPlugin
  12. {
  13. public void onDisable()
  14. {
  15. }
  16.  
  17. public void onEnable()
  18. {
  19. getServer().getPluginManager().registerEvents(new Playerlisten(), this);
  20. try {
  21. Metrics metrics = new Metrics(this);
  22. metrics.start();
  23. }
  24. catch (IOException localIOException)
  25. {
  26. }
  27. }
  28.  
  29. @EventHandler
  30. public void normalLogin(PlayerLoginEvent event)
  31. {
  32. }
  33.  
  34. @EventHandler(priority=EventPriority.HIGH)
  35. public void highLogin(PlayerLoginEvent event)
  36. {
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment