Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. public class Main extends JavaPlugin {
  2.    
  3.     public void onEnable() {
  4.         CommandHandler cH = new CommandHandler();
  5.         getCommand("Smelt").setExecutor(cH);
  6.         getCommand("smelt").setExecutor(cH);
  7.        
  8.         getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
  9.  
  10.             public void run() {
  11.                 getServer().broadcastMessage(ChatColor.AQUA + "Remember: Use the command /smelt to smelt your ores!");
  12.             }
  13.            
  14.         }, 0L, 2 * 60 * 20L);
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement