Itsyuumello2

Untitled

Dec 5th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. on first join:
  2. teleport player to {spawn}
  3. if {lobby.%player%} is true:
  4. set join message to "&7%player% &eFirst joined."
  5. set player's gamemode to adventure
  6.  
  7. on join:
  8. teleport player to {spawn}
  9. if {lobby.%player%} is true:
  10. set join message to "&7%player% &eJoined."
  11. set player's gamemode to adventure
  12.  
  13. on quit:
  14. if {lobby.%player%} is true:
  15. set quit message to "&7%player% &equit."
  16.  
  17. command /setspawn:
  18. permission: skript.admin
  19. trigger:
  20. send "&aスポーン地点を設定しました。"
  21. set {spawn} to location of player
  22.  
  23. command /team:
  24. trigger:
  25. open chest with 3 row named "&aTeam Selector" to player
  26. 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"
  27. 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"
  28.  
  29. on inventory click:
  30. if name of player's current inventory contain "&aTeam Selector":
  31. cancel event
  32. if name of clicked item is "&c赤 &aチームに参加する。":
  33. execute console command "/playsound block.note.hat master %player% ~ ~ ~ 2 1 1"
  34. set {red::*} to player
  35. send "&c赤 &aチームに参加しました!"
  36. send "&7%player% &aさんがチームに参加しました!" to {red::*}
  37. if name of clicked item is "&9青 &aチームに参加する。":
  38. execute console command "/playsound block.note.hat master %player% ~ ~ ~ 2 1 1"
  39. set {blue::*} to player
  40. send "&9青 &aチームに参加しました!"
  41. send "&7%player% &aさんがチームに参加しました!" to {red::*}
  42.  
  43. command /teamchat:
  44. trigger:
  45. if {red::*} is set:
  46. send "&ahi" to {red::*}
  47. send "&ahi"
  48. if {blue::*} is set:
  49. send "&ahi" to {blue::*}
  50. send "&ahi"
  51.  
  52. command /delteam <text>:
  53. permission: skript.admin
  54. trigger:
  55. loop all players:
  56. if arg-1 is "red":
  57. delete {red::*}
  58. send "&c赤チーム解散"
  59. if arg-1 is "blue":
  60. delete {blue::*}
  61. send "&9青チーム解散"
Advertisement
Add Comment
Please, Sign In to add comment