Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #======================================================
- #Nie zezwalam na:
- #Edytowanie kodu (oprócz options)
- #Podszywanie sie pod autora
- #Zezwalam na:
- #Edytowanie permisji (fragment: "pytaj.*")
- #Edytowanie opcji
- #=======================================================
- options:
- l: &9[PYTANIE] #Tag
- wiad1: {@l} &6Gracz &9%player% &6odpowiedzial jako pierwszy
- wiad2: {@l} &6Odpowiedz to &9%{x}%
- permisja: pytaj.*
- item: enchanted golden apple
- variables:
- odp = true
- x = "odpowiedz"
- command /pytanie [<text>] [<text>]:
- trigger:
- if player has permission "{@permisja}":
- if arg 1 is set:
- if arg 2 is set:
- set {odp} to "false"
- set {x} to "%arg 2%"
- replace all "_" with " " in command
- broadcast "{@l} &6%arg 1%"
- else:
- send "&4Podaj odpowiedz"
- else:
- send "&4Podaj pytanie"
- else:
- send "&cNie posiadasz permisji &7({@permisja}"
- on chat:
- if {odp} is "false":
- if message contains "%{x}%":
- cancel event
- set {odp} to "true"
- broadcast "{@wiadodp}"
- broadcast "{@wiadodp2}"
- loop all players:
- execute console command "playsound mob.wither.spawn %loop-player%"
- add 1 {@item} to player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement