Permissions: uses and consent
How a mini-script declares what it does and how you, the server's owner, allow it.
Declare and allow
A mini-script may do only what it declares on its uses line and what you have allowed for it.
uses message, teleport, console(say, time)- An action whose permission is not declared is an error on its own line. Even
messagehas to be declared. - A declared permission you have not allowed is an error on the
usesline. The mini-script does not load until you allow it. - Players and operators cannot allow anything in game.
The permissions
Permission | Allows | Needs your consent |
|---|---|---|
|
| no |
|
| yes |
|
| yes |
|
| yes |
|
| yes |
|
| yes |
|
| yes, for each command |
| charges and | yes |
|
| yes |
|
| yes |
Allow in the panel
- Open the mini-script on the Mini-scripts tab. It says Needs your permission.
- Read the Permissions list. It shows each permission and console command that needs your consent, marked Allowed or Not allowed.
- Press Allow. You allow everything the file asks for at once.
If the uses line changes while you decide, the panel asks you to check again. Refuse takes your consent back, and the mini-script stops at once.
From the server console, use miniscript allow <name> teleport console:say and miniscript deny <name>.
When a mini-script changes
Consent is kept per mini-script. A new version that asks for more than you allowed does not load until you allow it, and the version that ran before keeps running. A version that asks for less loads straight away.
Never allowed
These console commands run other commands or hand the server over, so no mini-script can run them: execute, function, schedule, op, deop, stop, reload, plugin, plugins, miniscript, datapack, sudo and return. This also covers forms such as minecraft:op. The first word of a command is checked again every time it runs, after the values are filled in.
Mini-scripts also have no store, purchase or Berry Points actions, and no access to the server's files.