Advertisement
Svely

Practice-Pvp

Aug 10th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. options:
  2. per: &cSorry You dont have permission
  3. server: &a[&eserver&a]&r
  4.  
  5. command /pvpmenu [<player>]:
  6. permission: pvp.admin
  7. permission message: {@per}
  8. trigger:
  9. open chest with 3 row named "&7PvP Menu" to arg-1
  10. wait 1 tick
  11. format slot 13 of arg-1 with diamond sword named "&aFree for All" to run [execute player command "ffa join"]
  12.  
  13. command /rank [<player>] [<text>]:
  14. permission: pvp.admin
  15. permission message: {@per}
  16. trigger:
  17. if arg 2 is "vip":
  18. set {rank::%UUID of arg-1%} to 1
  19. broadcast "{@server} &b%arg-1% &7さんが&aVIP&7ランクを買いました"
  20. execute console command "nte player %arg-1% prefix &a[VIP]"
  21. if arg 2 is "reset":
  22. delete {rank::%UUID of arg-1%}
  23. execute console command "nte player %arg-1% clear"
  24.  
  25. command /killeffect [<text>]:
  26. aliases: ke
  27. trigger:
  28. if {rank::%UUID of player%} is more than or equal to 1:
  29. if arg 1 is not set:
  30. open chest with 3 row named "&7Choose KillEffect" to player
  31. wait 1 tick
  32. format slot 10 of player with barrier named "&7None" to close then run [execute player command "ke none"]
  33. format slot 12 of player with redstone block named "&8Blood" to close then run [execute player command "ke blood"]
  34. if arg 1 is "none":
  35. delete {killeffect::%UUID of player%}
  36. send "&7killeffectをnoneに変更しました" to player
  37. stop
  38. if arg 1 is "blood":
  39. set {killeffect::%UUID of player%} to 1
  40. send "&7killeffectをbloodに変更しました" to player
  41. stop
  42. else:
  43. send "&cこのコマンドを実行するにはVIPランク以上が必要です" to player
  44.  
  45. command /autospawn [<text>]:
  46. trigger:
  47. if arg 1 is not set:
  48. if {autospawn::%UUID of player%} is true:
  49. send "&7autospawnを&cOff&7にしました" to player
  50. set {autospawn::%UUID of player%} to false
  51. stop
  52. else:
  53. send "&7autospawnを&aOn&7にしました" to player
  54. set {autospawn::%UUID of player%} to true
  55. stop
  56. if arg 1 is set:
  57. if {autospawn::%UUID of player%} is true:
  58. send "&7autospawnを&cOff&7にしました" to player
  59. set {autospawn::%UUID of player%} to false
  60. stop
  61. else:
  62. send "&7autospawnを&aOn&7にしました" to player
  63. set {autospawn::%UUID of player%} to true
  64. stop
  65.  
  66.  
  67. command /lobby [<text>]:
  68. trigger:
  69. if arg 1 is not set:
  70. set {lobby.teleport.countdown::%UUID of player%} to true
  71. send "&7ロビーにテレポートします..." to player
  72. wait 5 second
  73. if {lobby.teleport.countdown::%UUID of player%} is true:
  74. teleport player to {lobby}
  75. delete {lobby.teleport.countdown::%UUID of player%}
  76. send "&8You returned to Lobby" to player
  77. if arg 1 is set:
  78. set {lobby.teleport.countdown::%UUID of player%} to true
  79. send "&7ロビーにテレポートします..." to player
  80. wait 5 second
  81. if {lobby.teleport.countdown::%UUID of player%} is true:
  82. teleport player to {lobby}
  83. delete {lobby.teleport.countdown::%UUID of player%}
  84. send "&8You returned to Lobby" to player
  85.  
  86. command /setlobby:
  87. permission: pvp.admin
  88. permission message: {@per}
  89. trigger:
  90. set {lobby} to location of player
  91. send "&7set You location to lobby" to player
  92.  
  93. every tick:
  94. loop all players:
  95. set loop-player's sidebar
  96.  
  97. on damage:
  98. if victim is player:
  99. if {lobby.teleport.countdown::%UUID of victim%} is true:
  100. send "&cダメージを受けたため、キャンセルしました" to victim
  101. delete {lobby.teleport.countdown::%UUID of victim%}
  102.  
  103. on death:
  104. if attacker is player:
  105. if victim is player:
  106. if {killeffect::%UUID of attacker%} is 1:
  107. execute console command "execute %victim% ~ ~ ~ particle blockcrack ~ ~ ~ 0.3 0.7 0.3 0.2 100 force @a 152"
  108. if victim is player:
  109. if {autospawn::%UUID of victim%} is true:
  110. wait 12 tick
  111. force victim to respawn
  112.  
  113. on break:
  114. if player's gamemode is not creative:
  115. cancel event
  116.  
  117. on join:
  118. if player has played on this server before:
  119. set the join message to "&7[&a+&7] %player%"
  120. else:
  121. set the join message to "&7[&b+&7] &d%player%"
  122.  
  123. on quit:
  124. set the quit message to "&7[&c-&7] %player%"
  125.  
  126. on chat:
  127. if {rank::%UUID of player%} is not set:
  128. cancel event
  129. broadcast "&7%player%&a: &r%message%"
  130. stop
  131. if {rank::%UUID of player%} is 1:
  132. cancel event
  133. broadcast "&a[VIP] %player%&a: &r%message%"
  134. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement