Skip to content

Instantly share code, notes, and snippets.

@cacciatc
Last active December 14, 2015 08:49
Show Gist options
  • Save cacciatc/5060961 to your computer and use it in GitHub Desktop.
Save cacciatc/5060961 to your computer and use it in GitHub Desktop.
Example of using the Bukkit Scheduler from ScriptCraft.
load(__folder + "../drone/drone.js");
load(__folder + "../core/scriptcraft.js");
Drone.extend("big",function(){
server.scheduler.scheduleAsyncDelayedTask(global.plugin,function(){
(new Drone()).box(1,500,100,500);
print("done");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment