spigot run task later

Java
// 20L = 1 Second
Bukkit.getScheduler().runTaskLater(main, new Runnable() {
	public void run() {
		System.out.println("Plugin has been enabled for 5 seconds!");
	}
}, 100L);
Source

Also in Java: