SHARE
TWEET

Untitled

a guest Jun 28th, 2014 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package Events;
  2.  
  3. import me.confuser.barapi.BarAPI;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.event.EventHandler;
  8. import org.bukkit.event.Listener;
  9. import org.bukkit.event.player.PlayerJoinEvent;
  10.  
  11. import de.goldenapple.mt;
  12.  
  13. public class EnderBar implements Listener {
  14.        
  15.        
  16.                   private mt main;
  17.                  
  18.                   public void EnderBar(mt tools)
  19.                   {
  20.                     this.main = tools;
  21.                   }
  22.          
  23.  
  24.         @EventHandler
  25.         public void onJoin(PlayerJoinEvent e) {
  26.                 final Player p = e.getPlayer();
  27.  
  28.                    
  29.         BarAPI.setMessage(p, "Hallo ┬ža"+p.getName(), 10);
  30.        
  31.      Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(main, new Runnable() {
  32.  
  33.          public void run() {
  34.                        
  35.                         BarAPI.setMessage(p, "Test");
  36.                        
  37.                 }
  38.      },10*20);
  39.         }
  40. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top