Guest User

Untitled

a guest
May 6th, 2015
21
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.BenThunderBoss;
  2.  
  3. import me.confuser.barapi.BarAPI;
  4.  
  5. import org.bukkit.event.EventHandler;
  6. import org.bukkit.event.Listener;
  7. import org.bukkit.event.player.PlayerLoginEvent;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class MyFirstPlugin extends JavaPlugin implements Listener{
  11.  
  12. @Override
  13. public void onEnable() {
  14. getServer().getPluginManager().registerEvents(this, this);
  15. }
  16.  
  17. @Override
  18. public void onDisable() {
  19.  
  20. }
  21. @EventHandler
  22. public void onLogin(PlayerLoginEvent event) {
  23. BarAPI.setMessage("This is a Boss Bar test");
  24. }
  25. }
RAW Paste Data