Skip to content

Information & Syntax

Saskyc edited this page Mar 31, 2024 · 6 revisions

General Notes

  • The name of the script is equivalent to its file name, without the .txt extension. All scripts must be a .txt file and must be placed in the ScriptedEvents folder, otherwise the plugin will not be able to find them.
  • For sanity purposes, all scripts will automatically stop their execution as soon as the round begins to restart. This cannot be disabled.

Per-script permissions

Scripts can be set-up with a per-script permission system, to only allow certain staff to execute certain events. This can be done in the plugin's configuration, by adding the following.

  required_permissions:
    ExampleScriptNameHere: examplepermission

Replace ExampleScriptNameHere with the name of the script, and examplepermission to the permission to use. The actual permission required will automatically become script.execute.[whatever you put in the config].

Comments

  • Lines that start with a hashtag (#) character will be ignored, allowing the use of comments.
  • You create multi line comment by having 2 (##) and you end it with 2 (##)
##
This
is
multi
line
comment
##

Actions

Clone this wiki locally