Skip to content

Java code snippet – How to make a plugin wait on enable?

Bukkit.getScheduler().runTaskLater(main, new Runnable() {
	public void run() {
		System.out.println("Plugin has been enabled for 5 seconds!");
	}
}, 100L);
See also  Python code snippet - How to remove elements from a list?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.