Play Strawberry Docs

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.

text
uses message, teleport, console(say, time)
  • An action whose permission is not declared is an error on its own line. Even message has to be declared.
  • A declared permission you have not allowed is an error on the uses line. 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

message

message, title, actionbar and sound

no

broadcast

broadcast

yes

teleport

teleport

yes

items

give and take

yes

gamemode

gamemode

yes

subservers

move, on arrive and on move failed

yes

console(<commands>)

console, for the named commands only

yes, for each command

charges

charges and cooldown on model items

yes

particles

particles in model item blocks

yes

combat

damage, heal and effect in model item blocks

yes

Allow in the panel

  1. Open the mini-script on the Mini-scripts tab. It says Needs your permission.
  2. Read the Permissions list. It shows each permission and console command that needs your consent, marked Allowed or Not allowed.
  3. 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.

On this page