Advertisement
kman2010

Untitled

May 18th, 2011
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. package me.GoldEnchantTeam.GoldEnchant;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.plugin.Plugin;
  5. public class GoldEnchantTimer implements Runnable{{
  6.  
  7. Bukkit.getServer().getScheduler().scheduleAsyncDelayedTask((Plugin) this, new Runnable() {
  8.  
  9.     @Override
  10.     public void run() {
  11.         Bukkit.getServer().broadcastMessage("This message is broadcast by the main thread");
  12.        
  13.     }
  14.    
  15. }, 60L);
  16. }
  17.  
  18.  
  19. @Override
  20. public void run() {
  21.     Bukkit.getServer().broadcastMessage("This message is broadcast by the main thread");
  22.    
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement