Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {firstmessage} = &eわたしの さぁばぁ に きてくれて ありがとう! たのしいよ!
- {firstbroadcast} = &e%player% joined the game &7(first)
- {firstsound} = "entity.player.levelup"
- {joinsound} = "block.note.guitar"
- {leavesound} = "block.note.guitar"
- every tick:
- loop all players:
- if {%loop-player%.firstcheck} = 1:
- message "%{firstmessage}%" to loop-player
- broadcast "&e%loop-player% joined the game &7(first)"
- command "/menu grab %loop-player% first-item"
- teleport loop-player to {firstspawn}
- command "/gamemode {firstgamemode} %loop-player%"
- command "/execute @a ~ ~ ~ /playsound %{firstsound}% ambient @a ~ ~ ~ 1 0.5"
- remove 1 from {%loop-player%.firstcheck}
- on first join:
- wait 1 tick
- add 1 to {%player%.firstcheck}
- command /fjpex-message <text>:
- permission: skript.admin
- trigger:
- set {firstmessage} to arg
- message "&c初ログインした人のメッセージを変更しました!"
- message "%{firstmessage}%"
- command /fjpex-broadcast <text>:
- permission: skript.admin
- trigger:
- set {firstbroadcast} to arg
- message "&c初参加の時の他の人のメッセージを変更しました!"
- message "%{firstbroadcast}%"
- command /fjpex-firstitem:
- permission: skript.admin
- trigger:
- command "/menu create first-item 4 ここに初参加の時に持たせてほしいアイテムを入れてください"
- command "/menu edit %player% first-item"
- command /fjpex:
- trigger:
- message "&d-----FirstJoinPlusEX-----"
- message "&e/fjpex-message <text> &f初期プレイヤーのメッセージをtextに変更"
- message "&e/fjpex-broadcast <text> &f初期プレイヤーのブロードキャストをtextに変更"
- message "&a/fjpex-firstitem &f初期アイテムを変更します"
- message "&a/fjpex-debug &fさぁ、実験の始まりだ!!!"
- message "&a/fjpex-setspawn &f初期すぽぉんのいちを確認"
- message "&6あとはskriptをいじってで音の変更などができます"
- on join:
- set the join message to "&e%player% joined the game"
- command "/execute @a ~ ~ ~ /playsound %{joinsound}% ambient @a ~ ~ ~ 2 0.5"
- on quit:
- set the quit message to "&e%player% left the game"
- command "/execute @a ~ ~ ~ /playsound %{leavesound}% ambient @a ~ ~ ~ 2 2"
- command /fjpex-debug:
- permission: skript.admin
- trigger:
- add 1 to {%player%.firstcheck}
- command /fjpex-setspawn:
- permission: skript.admin
- trigger:
- set {firstspawn} to location of player
- message "変更 に 成功! Yo Yo!"
- command /fjpex-gamemode <number>:
- permission: skript.admin
- trigger:
- set {firstgamemode} to arg
Add Comment
Please, Sign In to add comment