bukkitgui2 icon indicating copy to clipboard operation
bukkitgui2 copied to clipboard

Feature Advanced tasks

Open Smile953 opened this issue 11 years ago • 1 comments

Heyho,

Just thought of a new feature. A way to add multiple triggers for a task to run.

Example Have a backup run after 20 min of up-time AND there being clients on the server. This way back-ups are only made when there are players on the server.

This example just combines 2 trigger already there, and even though I cannot think of a reason to need 3 I'd allow to have 3 triggers per task.

Kind regards, Luc Janssens aka Smile953

Smile953 avatar Oct 11 '14 20:10 Smile953

Right now, a trigger is always caused by a change of state. e.g. when the server reaches a certain player count, when someone joins or leaves, the server starts or stops. Due to that nature, 2 triggers can't be combined. I'll keep it in mind though, maybe I could add some "optional condition" field in the future, where you can write a condition (e.g. %playercount% > 0) which is checked before executing the task. If anyone knows how to implement this, feel free to fork and make a pull request :)

Greets,

Bertware avatar Oct 12 '14 09:10 Bertware