familychicken

Untitled

Aug 8th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. variables:
  2. {firstmessage} = &eわたしの さぁばぁ に きてくれて ありがとう! たのしいよ!
  3. {firstbroadcast} = &e%player% joined the game &7(first)
  4. {firstsound} = "entity.player.levelup"
  5. {joinsound} = "block.note.guitar"
  6. {leavesound} = "block.note.guitar"
  7.  
  8. every tick:
  9. loop all players:
  10. if {%loop-player%.firstcheck} = 1:
  11. message "%{firstmessage}%" to loop-player
  12. broadcast "&e%loop-player% joined the game &7(first)"
  13. command "/menu grab %loop-player% first-item"
  14. teleport loop-player to {firstspawn}
  15. command "/gamemode {firstgamemode} %loop-player%"
  16. command "/execute @a ~ ~ ~ /playsound %{firstsound}% ambient @a ~ ~ ~ 1 0.5"
  17. remove 1 from {%loop-player%.firstcheck}
  18.  
  19. on first join:
  20. wait 1 tick
  21. add 1 to {%player%.firstcheck}
  22.  
  23. command /fjpex-message <text>:
  24. permission: skript.admin
  25. trigger:
  26. set {firstmessage} to arg
  27. message "&c初ログインした人のメッセージを変更しました!"
  28. message "%{firstmessage}%"
  29.  
  30.  
  31. command /fjpex-broadcast <text>:
  32. permission: skript.admin
  33. trigger:
  34. set {firstbroadcast} to arg
  35. message "&c初参加の時の他の人のメッセージを変更しました!"
  36. message "%{firstbroadcast}%"
  37.  
  38. command /fjpex-firstitem:
  39. permission: skript.admin
  40. trigger:
  41. command "/menu create first-item 4 ここに初参加の時に持たせてほしいアイテムを入れてください"
  42. command "/menu edit %player% first-item"
  43.  
  44. command /fjpex:
  45. trigger:
  46. message "&d-----FirstJoinPlusEX-----"
  47. message "&e/fjpex-message <text> &f初期プレイヤーのメッセージをtextに変更"
  48. message "&e/fjpex-broadcast <text> &f初期プレイヤーのブロードキャストをtextに変更"
  49. message "&a/fjpex-firstitem &f初期アイテムを変更します"
  50. message "&a/fjpex-debug &fさぁ、実験の始まりだ!!!"
  51. message "&a/fjpex-setspawn &f初期すぽぉんのいちを確認"
  52. message "&6あとはskriptをいじってで音の変更などができます"
  53.  
  54.  
  55. on join:
  56. set the join message to "&e%player% joined the game"
  57. command "/execute @a ~ ~ ~ /playsound %{joinsound}% ambient @a ~ ~ ~ 2 0.5"
  58. on quit:
  59. set the quit message to "&e%player% left the game"
  60. command "/execute @a ~ ~ ~ /playsound %{leavesound}% ambient @a ~ ~ ~ 2 2"
  61.  
  62. command /fjpex-debug:
  63. permission: skript.admin
  64. trigger:
  65. add 1 to {%player%.firstcheck}
  66.  
  67. command /fjpex-setspawn:
  68. permission: skript.admin
  69. trigger:
  70. set {firstspawn} to location of player
  71. message "変更 に 成功! Yo Yo!"
  72.  
  73. command /fjpex-gamemode <number>:
  74. permission: skript.admin
  75. trigger:
  76. set {firstgamemode} to arg
Add Comment
Please, Sign In to add comment