Advertisement
Kacperski89

NO COPY 2

Jul 20th, 2015
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 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 2%"
  25. replace all "_" with " " in command
  26. broadcast "{@l} &6%arg 1%"
  27. else:
  28. send "&4Podaj odpowiedz"
  29. else:
  30. send "&4Podaj pytanie"
  31. else:
  32. send "&cNie posiadasz permisji &7({@permisja}"
  33. on chat:
  34. if {odp} is "false":
  35. if message contains "%{x}%":
  36. cancel event
  37. set {odp} to "true"
  38. broadcast "{@wiadodp}"
  39. broadcast "{@wiadodp2}"
  40. loop all players:
  41. execute console command "playsound mob.wither.spawn %loop-player%"
  42. add 1 {@item} to player's inventory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement