Guest User

Untitled

a guest
May 6th, 2015
250
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.entity.Player;
  6. import org.bukkit.event.EventHandler;
  7. import org.bukkit.event.Listener;
  8. import org.bukkit.event.player.PlayerLoginEvent;
  9. import org.bukkit.plugin.java.JavaPlugin;
  10.  
  11. public class MyFirstPlugin extends JavaPlugin implements Listener{
  12.  
  13. @Override
  14. public void onEnable() {
  15. getServer().getPluginManager().registerEvents(this, this);
  16. }
  17.  
  18. @Override
  19. public void onDisable() {
  20.  
  21. }
  22. @EventHandler
  23. public void onLogin(PlayerLoginEvent event) {
  24. Player p = event.getPlayer();
  25. BarAPI.setMessage(p, "Testing");
  26. }
  27. }
RAW Paste Data