Itsyuumello2

Untitled

Dec 8th, 2019
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. on join:
  2. if {game} is true:
  3. set player's gamemode to spectator
  4. teleport player to {spectatespawn}
  5. if {default.%player%} is set:
  6. set join message to "&7%player% &eJoined."
  7. if {vip.%player%} is set:
  8. set join message to "&a[VIP] %player% &6joined the game!"
  9. if {vip+.%player%} is set:
  10. set join message to "&a[VIP&6+&a] %player% &6joined the game!"
  11. if {mvp.%player%} is set:
  12. set join message to "&b>&c>&a> &b[MVP] %player% &6joined the game! &a<&c<&b<"
  13. if {mvp+.%player%} is set:
  14. set join message to "&b>&c>&a> &b[MVP&c+&b] %player% &6joined the game! &a<&c<&b<"
  15. if {special.%player%} is set:
  16. set join message to "&b>&c>&a> &d[SPECIAL] %player% &6joined the game! &a<&c<&b<"
  17. if {admin.%player%} is set:
  18. set join message to "&b>&c>&a> &c[ADMIN] %player% &6joined the game! &a<&c<&b<"
  19.  
  20. on quit:
  21. if {game} is true:
  22. set quit message to "&7%player% &7Disconnected."
  23. execute console command "/kill %player%"
  24.  
  25. on death of player:
  26. if {game} is true:
  27. set death message to "%victim% &ewas killed by %attacker%"
  28.  
  29. command /menu:
  30. trigger:
  31. if {lobby} is true:
  32. open chest with 3 row named "&aMenu" to player
  33. set slot 11 of player's current inventory to nether star named "&aゲームに参加" with lore "&7ここをクリックすると" and "&7チーム選択画面に移り、" and "&7ゲームに参加できます。" and "&1" and "&8Click to open"
  34. set slot 13 of player's current inventory to emerald named "&aショップ" with lore "&7ここをクリックすると" and "&7キットまたはコスチューム購入画面に移り、" and "&7購入することができます。" and "&1" and "&8Click to open"
  35. set slot 15 of player's current inventory to chest named "&aコスチューム" with lore "&7ここをクリックすると" and "&7コスチューム選択画面に移り、" and "&7自分の所持しているコスチュームを" and "&7選択しています。" and "&1" and "&8Click to open"
  36.  
  37. on inventory click:
  38. if name of player's current inventory contain "&aMenu":
  39. cancel event
  40. if name of clicked item is "&aゲームに参加":
  41. open chest with 3 row named "&aMenu" to player
  42. set slot 11 of player's current inventory to red wool named "&c赤チームに参加" with lore "&7ここをクリックすると" and "&7赤チームに参加します。" and "&1" and "&8Click to join"
  43. set slot 15 of player's current inventory to blue wool named "&9青チームに参加" with lore "&7ここをクリックすると" and "&7青チームに参加します。" and "&1" and "&8Click to join"
  44.  
  45.  
  46. on explode:
  47. cancel event
  48.  
  49. on drop:
  50. if {lobby} is true:
  51. cancel event
  52.  
  53. options:
  54. permissions: true
  55. # values: ( true | false )
  56.  
  57. perm-to-see-the-health-bar:sh.ver.a.vida
  58. # Write here your permission. This system only works if you have "permissions: true"
  59.  
  60. on join:
  61. while player is online:
  62. if {@permissions} = true:
  63. if player has the permission "{@perm-to-see-the-health-bar}":
  64. loop all players:
  65. set score " Health" below player to player's health for loop-player
  66. wait 20 ticks
  67. else:
  68. loop all players:
  69. set score " Health" below player to player's health for loop-player
  70. wait 20 ticks
Add Comment
Please, Sign In to add comment