Tasks will allow you to defer the execution of a block of code to a later time. Blocks of code may also be scheduled to be executed repeatedly at a fixed interval, with or without a delay. They will continue to execute until completed, or canceled, or your plugin is disabled. You should take a look to the WSTask Javadocs to see methods and understand the following snippets.

## Basic usage¶

Creating a Task is something really simple and powerful. In the following example we will create a task which will send a “This server is using WetSponge!” message to every online targets at the moment. Once the task is created we can run it using any property we want filling our needs.

// Main task - Send a message to all online targets