Guest User

Untitled

a guest
Jul 16th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. options:
  2. # Konfiguracja:
  3. tag: &2CUBOIDY
  4. # Wiadomosci:
  5. notpermiss: &cNie masz do tego uprawnien!
  6. error: &cNie mozesz tego zrobic!
  7. cuboidplaced: &aCuboid pomyslnie ustawiony!
  8. cuboidhelp: &aKomendy dotyczace skryptu na cuboidy: &c/cuboid help&a!
  9. succesadd: &aPomyslnie dodano gracza do cuboidu!
  10. addtocuboid: &aZostales dodany do cuboida gracza &c%player%&a!
  11. alreadyadded: &cTen gracz jest juz dodany do twojego cuboidu!
  12. notowner: &cNie jestes wlascicielem tego cuboidu!
  13. notregion: &cAby to zrobic musisz byc na swojej dzialce!
  14. notplayer: &cPodaj nick gracza!
  15. succesremov: &cUsunoles gracza z cuboidu!
  16. removfromcub: &cZostales usuniety z cuboidu &4%player%&c!
  17. notadded: &cTen gracz nie jest dodany do twojego cuboidu!
  18. # ::--------------------------------------------------------------::
  19. # :: - :: KOD ::-::
  20. # ::--------------------------------------------------------------::
  21. command /daj-cuboid:
  22. permission: cuboid.admin
  23. permission message: {@tag} {@notpermiss}
  24. trigger:
  25. add 1 of bedrock named "&c&lCUBOID" to player's inventory
  26. send "&aOtrzymales Cuboid!" to player
  27. on place:
  28. if player's tool is bedrock named "&c&lCUBOID":
  29. if {cuboid.%player%::*} is not set:
  30. execute console command "pex user %name of player% add worldedit.*"
  31. execute console command "pex user %name of player% add worldguard.*"
  32. execute player command "//pos1"
  33. execute player command "//pos2"
  34. execute player command "//expand 50 n"
  35. execute player command "//expand 50 s"
  36. execute player command "//expand 50 w"
  37. execute player command "//expand 50 e"
  38. execute player command "//expand vert"
  39. execute player command "rg define %name of player%"
  40. execute console command "pex user %name of player% remove worldedit.*"
  41. execute console command "pex user %name of player% remove worldguard.*"
  42. loop 99 times:
  43. send " " to player
  44. send "{@tag} {@cuboidplaced}" to player
  45. set {cuboid.%player%::%region at player%} to now
  46. send "{@tag} {@cuboidhelp}" to player
  47. else:
  48. send "Zmien to (linijka 48)"
  49. on break:
  50. if region at player is set:
  51. if {cuboid.%player%::%region at player%} is not set:
  52. if {cuboid.dodany.%player%::%region at player%} is not set:
  53. if player has permissions "cuboidy.admin":
  54. stop
  55. else:
  56. cancel event
  57. send "{@tag} {@error}" to player
  58. on place:
  59. if region at player is set:
  60. if {cuboid.%player%::%region at player%} is not set:
  61. if {cuboid.dodany.%player%::%region at player%} is not set:
  62. if player has permissions "cuboidy.admin":
  63. stop
  64. else:
  65. cancel event
  66. send "{@tag} {@error}" to player
  67. on right click:
  68. if event-block is chest or furnace or anvil or ender chest or door:
  69. if region at player is set:
  70. if {cuboid.%player%::%region at player%} is not set:
  71. if {cuboid.dodany.%player%::%region at player%} is not set:
  72. if player has permissions "cuboid.admin":
  73. stop
  74. else:
  75. cancel event
  76. send "{@tag} {@error}"
  77. command /cuboid <text> [<player>]:
  78. usage: /cuboid help
  79. trigger:
  80. if text-arg is "help":
  81. send "{@tag} &7-> &c/cuboid dodaj NICK &7- Dodajesz gracza do cuboida!" to player
  82. send "{@tag} &7-> &c/cuboid usun NICK &7- Usuwasz gracza z cuboida!" to player
  83. send "{@tag} &7-> &c/cuboid autor &7- Wyswietla autora skryptu." to player
  84. else if text-arg is "dodaj":
  85. if player-arg is set:
  86. if region at player is set:
  87. if {cuboid.%player%::%region at player%} is set:
  88. if {cuboid.dodany.%player-arg%::%region at player%} is not set:
  89. set {cuboid.dodany.%player-arg%::%region at player%} to now
  90. send "{@tag} {@succesadd}" to player
  91. send "{@tag} {@addtocuboid}" to player-arg
  92. else:
  93. send "{@tag} {@alreadyadded}" to player
  94. else:
  95. send "{@tag} {@notowner}" to player
  96. else:
  97. send "{@tag} {@notregion}" to player
  98. else:
  99. send "{@tag} {@notplayer}" to player
  100. else if text-arg is "usun":
  101. if player-arg is set:
  102. if region at player is set:
  103. if {cuboid.%player%::%region at player%} is set:
  104. if {cuboid.dodany.%player-arg%::%region at player%} is set:
  105. clear {cuboid.dodany.%player-arg%::%region at player%}
  106. send "{@tag} {@succesremov}" to player
  107. send "{@tag} {@removfromcub}" to player-arg
  108. else:
  109. send "{@tag} {@notadded}" to player
  110. else:
  111. send "{@tag} {@notowner}" to player
  112. else:
  113. send "{@tag} {@notregion}" to player
  114. else:
  115. send "{@tag} {@notplayer}" to player
  116. else if text-arg is "autor":
  117. send "{@tag} &8| &7Autor skryptu na cuboidy: &cdamixedixed&7!"
  118. else:
  119. execute player command "cuboid help"
Advertisement
Add Comment
Please, Sign In to add comment