Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- teleport player to {spawn}
- if {lobby.%player%} is true:
- set join message to "&7%player% &eFirst joined."
- set player's gamemode to adventure
- on join:
- teleport player to {spawn}
- if {lobby.%player%} is true:
- set join message to "&7%player% &eJoined."
- set player's gamemode to adventure
- on quit:
- if {lobby.%player%} is true:
- set quit message to "&7%player% &equit."
- command /setspawn:
- permission: skript.admin
- trigger:
- send "&aスポーン地点を設定しました。"
- set {spawn} to location of player
- command /team:
- trigger:
- open chest with 3 row named "&aTeam Selector" to player
- set slot 11 of player's current inventory to red wool named "&c赤 &aチームに参加する。" with lore "&7クリックすると &c赤 &7チームに参加します。" and "&c" and "&8Click to join"
- set slot 15 of player's current inventory to blue wool named "&9青 &aチームに参加する。" with lore "&7クリックすると &9青 &7チームに参加します。" and "&9" and "&8Click to join"
- on inventory click:
- if name of player's current inventory contain "&aTeam Selector":
- cancel event
- if name of clicked item is "&c赤 &aチームに参加する。":
- execute console command "/playsound block.note.hat master %player% ~ ~ ~ 2 1 1"
- set {red::*} to player
- send "&c赤 &aチームに参加しました!"
- send "&7%player% &aさんがチームに参加しました!" to {red::*}
- if name of clicked item is "&9青 &aチームに参加する。":
- execute console command "/playsound block.note.hat master %player% ~ ~ ~ 2 1 1"
- set {blue::*} to player
- send "&9青 &aチームに参加しました!"
- send "&7%player% &aさんがチームに参加しました!" to {red::*}
- command /teamchat:
- trigger:
- if {red::*} is set:
- send "&ahi" to {red::*}
- send "&ahi"
- if {blue::*} is set:
- send "&ahi" to {blue::*}
- send "&ahi"
- command /delteam <text>:
- permission: skript.admin
- trigger:
- loop all players:
- if arg-1 is "red":
- delete {red::*}
- send "&c赤チーム解散"
- if arg-1 is "blue":
- delete {blue::*}
- send "&9青チーム解散"
Advertisement
Add Comment
Please, Sign In to add comment