Advertisement
kman2010

Untitled

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