HazzelDoesStuff

Untitled

Jul 27th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. options:
  2. tag: &7[&4&lTNT&c&lDUELS&7]
  3.  
  4. command /set1v1spawn1:
  5. permission: "duel.admin"
  6. trigger:
  7. set {1v11} to location of player
  8. message "{@tag} &aYou have successfully set 1v1 spawn 1 !"
  9. command /set1v1spawn2:
  10. permission: "duel.admin"
  11. trigger:
  12. set {1v12} to location of player
  13. message "{@tag} &aYou have successfully set 1v1 spawn 2 !"
  14. on command:
  15. if {in1v1.%player%} is true:
  16. cancel event
  17. send "{@tag} &cYou can't execute commands in 1v1" to player
  18. command /1v1 [<player>]:
  19. trigger:
  20. if arg 1 is player:
  21. send "{@tag} &cYou can't 1v1 yourself"
  22. if arg 1 is not set:
  23. send "{@tag} &5You no longer requesting anyone to 1v1."
  24. clear {requesting.%player%}
  25. else:
  26. if {1v1antispam.%player%} is false:
  27. if {requesting.%arg 1%} is player:
  28. if {arena1} is false:
  29. set {arena1} to true
  30. set {_1} to arg 1
  31. set {_2} to player
  32. clear {requesting.%{_1}%}
  33. clear {requesting.%{_2}%}
  34. set {in1v1.%{_1}%} to true
  35. set {in1v1.%{_2}%} to true
  36. execute console command "/gamemode 0 %{_1}%"
  37. execute console command "/gamemode 0 %{_2}%"
  38. message "&7-------------------------------------" to {_1}
  39. message "{@tag} &6You are now fighting %{_2}%" to {_1}
  40. message "&7-------------------------------------" to {_1}
  41. message "&7-------------------------------------" to {_2}
  42. message "{@tag} &6You are now fighting %{_1}%" to {_2}
  43. message "&7-------------------------------------" to {_2}
  44. execute console command "/clear %{_1}%"
  45. execute console command "/clear %{_2}%"
  46. teleport {_1} to {1v11}
  47. teleport {_2} to {1v12}
  48. execute console command "/effect %{_1}% clear"
  49. execute console command "/effect %{_2}% clear"
  50. apply speed 2 to {_1} for 999 days
  51. equip {_1} with all iron armor of protection 4
  52. give 1 iron sword of unbreaking 100 and sharpness 2 to {_1}
  53. give 3 enchanted golden apple to {_1}
  54. apply speed 2 to {_2} for 999 days
  55. equip {_2} with all iron armor of protection 4
  56. give 1 iron sword of unbreaking 100 and sharpness 2 to {_2}
  57. give 64 enchanted golden apple to {_2}
  58. broadcast "{@tag} &4%{_1}% &6vs &4%{_2}%"
  59. stop
  60. else:
  61. send "{@tag} &6Arena is in use, try again later" to player
  62. stop
  63. else:
  64. set {1v1antispam.%player%} to true
  65. set {requesting.%player%} to arg 1
  66. send "{@tag} &6You are resquesting %arg 1% to 1v1" to player
  67. send "{@tag} &6%player% want to 1v1 you, use /1v1 %player% to accept" to arg 1
  68. wait 30 seconds
  69. set {1v1antispam.%player%} to false
  70. stop
  71. else:
  72. send "{@tag} don't spam the 1v1 command" to player
  73. on join:
  74. set {1v1antispam.%player%} to false
  75. on quit:
  76. clear {requesting.%player%}
  77. command /debugarena1:
  78. permission: op
  79. trigger:
  80. set {arena1} to false
  81. on death:
  82. if {in1v1.%victim%} is true:
  83. set {in1v1.%victim%} to false
  84. set {in1v1.%attacker%} to false
  85. set {arena1} to false
  86. teleport attacker to {spawn}
  87. clear attacker's inventory
  88. heal attacker
  89. on quit:
  90. if {in1v1.%player%} is true:
  91. set {in1v1.%player%} to false
  92. set {arena1} to false
  93. loop all players:
  94. if {in1v1.%loop-player%} is true:
  95. teleport loop-player to {spawn}
  96. set {in1v1.%loop-player%} to false
  97. clear loop-player's inventory
  98. heal loop-player
Advertisement
Add Comment
Please, Sign In to add comment