Advertisement
Kacperski89

No Copy!

Jul 19th, 2015
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. #======================================================
  2. #Nie zezwalam na:
  3. #Edytowanie kodu (oprócz options)
  4. #Podszywanie sie pod autora
  5. #Zezwalam na:
  6. #Edytowanie permisji (fragment: "pytaj.*")
  7. #Edytowanie opcji
  8. #=======================================================
  9. options:
  10. l: &9[PYTANIE] #Tag
  11. wiad1: {@l} &6Gracz &9%player% &6odpowiedzial jako pierwszy
  12. wiad2: {@l} &6Odpowiedz to &9%{x}%
  13. permisja: pytaj.*
  14. item: enchanted golden apple
  15. variables:
  16. odp = true
  17. x = "odpowiedz"
  18. command /pytanie [<text>] [<text>]:
  19. trigger:
  20. if player has permission "{@permisja}":
  21. if arg 1 is set:
  22. if arg 2 is set:
  23. set {odp} to "false"
  24. set {x} to "%arg 1%"
  25. broadcast "{@l} &6%arg 2%"
  26. else:
  27. send "&4Podaj pytanie"
  28. else:
  29. send "&4Podaj odpowiedz"
  30. else:
  31. send "&cNie posiadasz permisji &7({@permisja}"
  32. on chat:
  33. if {odp} is "false":
  34. if message contains "%{x}%":
  35. cancel event
  36. set {odp} to "true"
  37. broadcast "{@wiadodp}"
  38. broadcast "{@wiadodp2}"
  39. loop all players:
  40. execute console command "playsound mob.wither.spawn %loop-player%"
  41. add 1 {@item} to player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement