Write Attribute
Writes a server attribute such as server.motd, or defines a custom attribute for the blocks after it.
- Category
- Data
- Topics
- Scheduler ยท Server properties
Ports
- triggercontrol
- Valuestring
- onCompletecontrol
- onFailedcontrol
Data types
string
number
bool
Strings accept any data input.
Numbers accept boolean input.
Fields
| Field | What it does | Default | Limits |
|---|---|---|---|
| Attribute | The attribute to write; a name that is not built in defines a custom attribute. | server.motd |
|
| Value | The value to write; a wired Value replaces it. | None | No line breaks in a server attribute. |
What a run does
A built-in attribute is written to server.properties in the server's
folder.
The server is not restarted.
A leading @ in the name
is ignored.
A wired Value replaces the Value field.
| Attribute | Writes |
|---|---|
players.max |
max-players |
server.motd |
motd |
server.whitelist |
white-list, and sends whitelist on to a running
server for true or 1, otherwise
whitelist off
|
server.port |
server-port |
server.gamemode |
gamemode, and sends defaultgamemode with the value
to a running server
|
server.world |
level-name |
The read-only attributes fail the block: tps,
players.count, ram.used, ram.left,
ram.total and server.status.
Any other name defines a custom attribute for the rest of this run.
Its value
is kept as typed.
An @attribute inside it is read again each time
the custom attribute is used.
The custom attribute is gone when the run
ends.
Read Attribute reads
it.
It leaves by onComplete when the attribute is written or defined, and
by onFailed on an error.
Errors
| Message says | Do |
|---|---|
| attribute @name is read-only | Choose one of the writable attributes. |
| property value must be a single line | Remove the line breaks from the value. |