Skip to content

Command Reference: Cancel

EpiCanard edited this page Apr 5, 2022 · 3 revisions
Command Aliases Syntax Description
cancel setcancel, stopevent /svs cancel <mode> Set if/when a ServerSign should cancel the player interact event

Purpose

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).

Parameters

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

Examples

/svs setcancel always
/svs cancel never
/svs stopevent success_only
/svs cancel fail_only
Clone this wiki locally