Skript
Skript scripts with Codexe. Which add-ons the test server has, how scripts are test-loaded on a real Paper server, what "not test-loaded" means and how to install.
Updated
On this page
Skript is a plugin that runs .sk scripts written in an English-like syntax. It covers a lot of server behaviour without writing Java.
#What to put in the request
- What the script does: commands, events, GUIs, timers.
- Which add-ons you can install. Base Skript can't do everything; some features need an add-on.
- Your server version, if the script uses version-specific items or effects.
A Skript script: /kit starter gives a stone sword, 16 bread and 8 torches, once every 24 hours per player (stored in a variable). Show the remaining time if used too early. Permission kits.starter.#How Codexe verifies Skript
Codexe loads the scripts on a real Paper 1.21.11 server with Skript 2.16.2, offline in its build sandbox, and reads the parse errors Skript reports. Every .sk file must load. Scripts with errors are repaired like code.
The test server has these add-ons installed:
| Add-on | Why |
|---|---|
| SkBee | NBT, boss bars, scoreboards, many extra syntaxes |
| skript-reflect | Access to Java classes from scripts |
| skript-gui | Inventory GUIs |
| skript-yaml | Reading and writing YAML files |
| Vault + EssentialsX | So economy expressions such as player's balance exist |
#"Generated, but not test-loaded"
If a script uses an add-on the test server doesn't have (for example SkQuery, TuSKe, skript-db or DiSky), Codexe can't load it meaningfully. The project is marked not test-loaded (see the project lifecycle) instead of being "repaired" into something else. The script may be fine on your server if you have that add-on.
#Install
Put the .sk files in plugins/Skript/scripts/ and run /sk reload <name> (or restart). Install any add-ons the script needs first.