MrNorbertPL24

Untitled

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