Script Commands

~ This page is incomplete...

Commands

- /schedule - schedules a script
- /execute - executes a script
- /eval - evaluates a statement
- /all - executes a script for all players
- /player - executes as a specific player
- /if - compare a statement

Permissions:

- signranks.schedule
- signranks.execute
- signranks.all
- signranks.player

Task scheduling

- A tutorial can be found here

/execute

- This will execute a script (so all loops etc will work)
- Each line can be separated by a semicolon: ";"
e.g. if true; \It's true!
- Variables placeholders can be used by {VARNAME}
- local variables can be set with "var NAME VALUE"
e.g. "var test 5+6" - will make {test} be equal to 11
- For global variables use gvar instead of var

/eval

- This will evaluate a single line
e.g. /eval 1+6 - will return 7
- All placeholders are evaluated too
e.g. /eval {epoch} - {firstjoin} - Will tell you how long ago you first joined the server (s)

/all

- The /all command allows you to execute a script for each player
e.g. /all do suicide - will have everyone commit suicide
- Placeholders are evaluated for that user
e.g. /all \My name is {player} - will have every user tell you their username.
- Remember you can refer to the sender with {sender}

/player

- Will execute a script as a different player e.g. /player Notch \I am notch

/if

- Your basic if statement


Comments

Posts Quoted:
Reply
Clear All Quotes