Description: PERMISSIONS WIZARD is a small interact script example for 0.8.4+
This script is kept simple to allow a base scripting example to extend upon.
Permissions Wizard assumes the default game-mode is 'adventure' (2).
Agree to the Wizard's terms, and instantly be granted 'survival mode'!
# PERMISSIONS WIZARD is a small interact script example for 0.8.4+# This script is kept simple to allow a base scripting example to extend upon.## Permissions Wizard assumes the default game-mode is 'adventure' (2).# Agree to the Wizard's terms, and instantly be granted 'survival mode'!# Note: Be sure the 'chat trigger' is enabled.## @version 1.0.0# @author aufdemrand
'Permissions wizard':
type: assignment
interact scripts:
- 10 The Time to Build
actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
"The Time to Build":
type: interact
steps:
'I can build*':
click trigger:
script:
- chat "<white>I hate dealing with idiots. Do you promise not to be an idiot?"
- wait 2
- chat "<white>What do you say?"
chat trigger:
'Sure thing':
trigger: /YES/, I will not be an idiot
script:
- engage now
- execute as_server 'gamemode 0 <player.name>'
- chat 'Okay, you can build things now. Thanks for not being an idiot!'
- disengage