Files and the panel editor
How you create, edit, save and delete mini-scripts on your server's page in the panel.
Create a mini-script
- Open the Mini-scripts tab on your server's page.
- Press New mini-script.
- Type a name. Choose Empty or a starter: Debug world, Welcome, Announcer, Spawn, No swearing or Starter kit button.
- Press Create.
- Edit the text and press Save.
- A name is 1 to 32 characters:
atoz,0to9,_and-, starting with a letter or a digit. - One mini-script is UTF-8 text of at most 64 KiB (65,536 bytes).
- A server has at most 64 mini-scripts.
The editor
The editor shows line numbers, indents the lines inside blocks, marks every problem at its line and column and shows how much of the 64 KiB you use. Ctrl+S (Cmd+S on a Mac) saves.
What Save does
- The panel checks the name, the size and the number of mini-scripts.
- It stores the text exactly as you typed it and tells the running server to load it.
- The server checks the whole file and swaps it in in one step. New events, commands and timers use the new version at once. A run paused by
waitfinishes on the version it started with, and saved values stay. - The editor shows the result: Saved and loaded., Saved with problems: 2. or, when the server is off, Saved. It loads when the server starts.
A file with problems does not replace the version that runs. See When a file is broken.
The states
Each mini-script in the list has a state:
- Loaded: this version runs.
- Has errors: the file has problems and did not load. The previous version is running. appears when an older version runs.
- Not running: nothing runs under this name.
- Needs your permission: the file asks for something you have to allow. See Permissions.
A file that the server has not reported on shows as waiting to load.
Reload and delete
- Reload loads the saved file again.
- Delete asks first, removes the file and stops the mini-script. Its permissions are taken back.
- Tick Delete its saved values too to remove its saved values as well.
- A command of a deleted mini-script stays in the command list until the next restart and answers that it is not available.
You, the server's owner, change mini-scripts. The panel keeps a record of every save, delete and permission change.
Console commands
Type these on the Console tab of your server's page:
Command | What it does |
|---|---|
| Lists the mini-scripts and their states. |
| Shows the problems of one mini-script, each with line, column, text and code. |
| Loads one mini-script again. |
| Allows permissions. Console only. |
| Takes all permissions back. Console only. |
In game, miniscript list, errors and reload need the permission miniscript:admin, which level 4 operators have by default.
The launcher
The Play Strawberry launcher shows the same list for your servers, read only. Its Edit button opens that mini-script in the panel.