Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- if {game} is true:
- set player's gamemode to spectator
- teleport player to {spectatespawn}
- if {default.%player%} is set:
- set join message to "&7%player% &eJoined."
- if {vip.%player%} is set:
- set join message to "&a[VIP] %player% &6joined the game!"
- if {vip+.%player%} is set:
- set join message to "&a[VIP&6+&a] %player% &6joined the game!"
- if {mvp.%player%} is set:
- set join message to "&b>&c>&a> &b[MVP] %player% &6joined the game! &a<&c<&b<"
- if {mvp+.%player%} is set:
- set join message to "&b>&c>&a> &b[MVP&c+&b] %player% &6joined the game! &a<&c<&b<"
- if {special.%player%} is set:
- set join message to "&b>&c>&a> &d[SPECIAL] %player% &6joined the game! &a<&c<&b<"
- if {admin.%player%} is set:
- set join message to "&b>&c>&a> &c[ADMIN] %player% &6joined the game! &a<&c<&b<"
- on quit:
- if {game} is true:
- set quit message to "&7%player% &7Disconnected."
- execute console command "/kill %player%"
- on death of player:
- if {game} is true:
- set death message to "%victim% &ewas killed by %attacker%"
- command /menu:
- trigger:
- if {lobby} is true:
- open chest with 3 row named "&aMenu" to player
- 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"
- 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"
- 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"
- on inventory click:
- if name of player's current inventory contain "&aMenu":
- cancel event
- if name of clicked item is "&aゲームに参加":
- open chest with 3 row named "&aMenu" to player
- set slot 11 of player's current inventory to red wool named "&c赤チームに参加" with lore "&7ここをクリックすると" and "&7赤チームに参加します。" and "&1" and "&8Click to join"
- set slot 15 of player's current inventory to blue wool named "&9青チームに参加" with lore "&7ここをクリックすると" and "&7青チームに参加します。" and "&1" and "&8Click to join"
- on explode:
- cancel event
- on drop:
- if {lobby} is true:
- cancel event
- options:
- permissions: true
- # values: ( true | false )
- perm-to-see-the-health-bar:sh.ver.a.vida
- # Write here your permission. This system only works if you have "permissions: true"
- on join:
- while player is online:
- if {@permissions} = true:
- if player has the permission "{@perm-to-see-the-health-bar}":
- loop all players:
- set score " Health" below player to player's health for loop-player
- wait 20 ticks
- else:
- loop all players:
- set score " Health" below player to player's health for loop-player
- wait 20 ticks
Add Comment
Please, Sign In to add comment