Welcome to Episode Seven of our Minecraft plugin development series.

Click here to see the previous, sixth episode where I show you how to use settings when making Minecraft plugins.

In this episode, we’re going to cover:

  • Delayed tasks — Running a piece of code later.
  • Timed tasks — Running a piece of code repetitively until you stop it using BukkitRunnable.
  • Sync vs async — The difference between running code on the main server thread vs. another.

Source Codes:



How Scheduling Work In Minecraft Plugins

You can utilize Bukkit Runnable or Runnable to run a block of your code later, or repeatedly at a fixed interval, with or without a delay.

Bukkit will continue to execute tasks until they are canceled, or your plugin is disabled.

Watch the video above to learn how to do it!


Learn To Make Minecraft Plugins

Creating Minecraft plugins can be confusing, with most YouTube tutorials being painfully outdated, disorganized and offering no live support.

If you want to learn from the best of the pack and create truly customized plugins, check out Project OrionThis is a full fledged training tried and tested by 2,000+ people showing step-by-step on how to make plugins, advanced systems (minigames, custom mobs, antipiracy, dungeons, claims etc.) and much more!

You’ll meet me live 2x/week inside Project Orion where you can unmute yourself, get me to review your code and get your questions answered, live.

It’s just so much better experience than any blog post or video since I can pour my time and heart into it with greater depth and our platform is custom coded with features we need for it specifically. Click here to learn more!