MrNorbertPL24

Untitled

Jun 23rd, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. options:
  2. logo: &8&l[&6&lZC&8&l]&7 OX%{dw}%
  3. command /ox [<text>] [<text>]:
  4. trigger:
  5. if player has permissions "*" or "ox.admin":
  6. arg 1 is "brama":
  7. execute console command "pex user %player% add worldedit.*"
  8. execute console command "pex user %player% add worldguard.*"
  9. wait a tick
  10. execute player command "rg select ox-brama"
  11. wait a tick
  12. execute player command "//set 0"
  13. wait 12 seconds
  14. execute console command "pex user %player% add worldedit.*"
  15. execute console command "pex user %player% add worldguard.*"
  16. execute player command "//undo"
  17. execute console command "pex user %player% remove worldedit.*"
  18. execute console command "pex user %player% remove worldguard.*"
  19. arg 1 is not set:
  20. send "&cUzycie:"
  21. send "&c/ox tak/nie <pytanie"
  22. send "&c/ox start/stop"
  23. send "&c/ox brama"
  24. if arg 1 is "start":
  25. if {ox} is false:
  26. set {ox} to true
  27. broadcast "{@logo} Event wystartowal"
  28. wait a tick
  29. if {ox} is true:
  30. send "Event jest juz wlaczony.."
  31. if arg 1 is "stop":
  32. if {ox} is true:
  33. set {ox} to false
  34. broadcast "{@logo} Event zatrzymany"
  35. wait a tick
  36. if {ox} is false:
  37. send "event jest juz wylaczony"
  38. if arg 1 is "tak" or "yes":
  39. arg 2 is set:
  40. if {ox} is true:
  41. execute console command "pex user %player% add worldedit.*"
  42. execute console command "pex user %player% add worldguard.*"
  43. wait a tick
  44. execute player command "rg select ox-tak"
  45. broadcast "{@logo}&2&l %arg 2%"
  46. wait 6 seconds
  47. execute player command "rg select ox-tak"
  48. wait 1 seconds
  49. execute player command "//set 0"
  50. wait 2 seconds
  51. execute player command "//undo"
  52. execute console command "pex user %player% remove worldedit.*"
  53. execute console command "pex user %player% remove worldguard.*"
  54. if {ox} is false:
  55. send "Event ox jest wylaczony.."
  56. arg 2 is not set:
  57. send "Uzycie /ox tak <pytanie>"
  58. if arg 1 is "nie" or "no":
  59. arg 2 is set:
  60. if {ox} is true:
  61. execute console command "pex user %player% add worldedit.*"
  62. execute console command "pex user %player% add worldguard.*"
  63. execute player command "rg select ox-nie"
  64. broadcast "{@logo}&2&l %arg 2%"
  65. wait 7 seconds
  66. execute player command "rg select ox-nie"
  67. execute player command "//set 0"
  68. wait 3 seconds
  69. execute player command "//undo"
  70. execute console command "pex user %player% remove worldedit.*"
  71. execute console command "pex user %player% remove worldguard.*"
  72. if {ox} is false:
  73. send "Event ox jest wylaczony.."
  74. arg 2 is not set:
  75. send "Uzycie /ox nie <pytanie>"
  76. on join:
  77. execute console command "pex user %player% remove worldedit.*"
  78. execute console command "pex user %player% remove worldguard.*"
Advertisement
Add Comment
Please, Sign In to add comment