Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on enable:
- set {TrollTitle} to "&4<&cTroll&4>"
- set {TrollPermissionMessage} to " &4Je hebt &convoldoende rechten &4om deze command uit te voeren."
- command /troll [<offline player>] [<text>] [<number>]:
- trigger:
- if player has permission "troll.*":
- if arg 1 is set:
- if arg 2 is not set:
- execute console command "/ctroll %player% %arg 1% 1"
- stop
- if arg 2 is "blind" OR "blindness":
- if arg 3 is set:
- if arg 3 is less than 61:
- execute console command "/ctroll %player% %arg 1% blindness %arg 3%"
- send "%{TrollTitle}% Je hebt &c%arg 1% blindness &4gegeven voor &c%arg 3% secondes&4."
- stop
- else:
- send "%{TrollTitle}% Je mag maximaal &c60 secondes &4invullen."
- stop
- else:
- execute console command "/ctroll %player% %arg 1% blindness 10"
- send "%{TrollTitle}% Je hebt &c%arg 1% blindness &4gegeven voor &c10 secondes&4."
- stop
- else:
- send "%{TrollTitle}% Dit is geen bestaande troll"
- stop
- else:
- send "%{TrollTitle}% Je moet nog een &cspeler &4opgeven die je wilt trollen."
- stop
- else:
- send "%{TrollTitle}%%{TrollPermissionMessage}%"
- stop
- command /ctroll <offline player> <offline player> <text> [<number>]:
- executable by: console
- trigger:
- if arg 3 is "1":
- wait 3 ticks
- open chest with 4 rows named "&c&lTrollmenu %arg 2%" to arg 1
- format slot 13 of arg 1 with a black wool named "&4Blindness troll" with lore "&7Geeft %arg 2% een blindness effect voor 10 secondes" to close then run [execute console command "/ctroll %arg 1% %arg 2% blindness 10"]
- format slot 31 of arg 1 with a barrier named "&4Sluit het menu" with lore "&7Sluit het troll menu van %arg 2%" to close
- format slot 32 of arg 1 with a arrow named "&4Volgende pagina" with lore "&7Ga naar de volgende pagina met trolls." to close then run [execute console command "/ctroll %arg 1% %arg 2% 2"]
- stop
- if arg 3 is "2":
- wait 3 ticks
- open chest with 4 rows named "&c&lTrollmenu %arg 2%" to arg 1
- format slot 30 of arg 1 with a arrow named "&4Vorige pagina" with lore "&7Ga naar de vorige pagina uit het troll menu" to close then run [execute console command "/ctroll %arg 1% %arg 2% 1"]
- format slot 31 of arg 1 with a barrier named "&4Sluit het menu" with lore "&7Sluit het troll menu van %arg 2%" to close
- stop
- if arg 3 is "blindness":
- if arg 4 is set:
- #apply blindness 1 to arg 2 for {bsec} seconds
- execute console command "/effect %arg 2% blindness %arg 4%"
- stop
- else:
- execute console command "/effect %arg 2% blindness 10"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement