Command Reference: Cancel - serversigns/ServerSigns GitHub Wiki
Command | Aliases | Syntax | Description |
---|---|---|---|
cancel | setcancel, stopevent | /svs cancel <mode> | Set if/when a ServerSign should cancel the player interact event |
The cancel event mode determines if/when the PlayerInteractEvent should be cancelled during ServerSigns execution.
This is particularly useful for setting a ServerSign up on a redstone-producing block (like a button) - using the cancel event mode the admin can choose when the redstone signal should be emitted (i.e. only when the execution is successful).
Parameter | Description |
---|---|
mode | The mode should be input as a literal string as shown below. |
Available Modes:
Mode | Description |
---|---|
always | The event will always be cancelled, no matter the outcome of the execution |
never | The event will never be cancelled, no matter the outcome of the execution |
success_only | The event will only be cancelled if the execution is successful |
fail_only | The event will only be cancelled if the execution fails |
/svs setcancel always
/svs cancel never
/svs stopevent success_only
/svs cancel fail_only