Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- maxhome: 5
- command /sethome [<text>]:
- trigger:
- if arg is set:
- set {_num} to arg parsed as integer
- if {_num} is not set:
- loop {@maxhome} times:
- {home.%UUID of player%::%loop-number%} is not set
- set {home.%UUID of player%::%loop-number%} to location of player
- set yaw of {home.%UUID of player%::%loop-number%} to 0
- set pitch of {home.%UUID of player%::%loop-number%} to 0
- send "&6あなたのホーム%loop-number%をworld: %player's world%, %location of player%に設定しました"
- set {_setflag} to 1
- stop loop
- {_setflag} is not set
- send "&cホームが設定できませんでした"
- send "&cホームをどれか一つリセットするか番号を指定して上書きしてください"
- else if {_num} is set:
- if {_num} is not between 1 and {@maxhome}:
- send "&cホームは1から{@maxhome}番までしか設定できません"
- else:
- set {home.%UUID of player%::%arg%} to location of player
- send "&6あなたのホーム%arg%をworld: %player's world%, %location of player%に設定しました"
- else if arg is not set:
- loop {@maxhome} times:
- {home.%UUID of player%::%loop-number%} is not set
- set {home.%UUID of player%::%loop-number%} to location of player
- set yaw of {home.%UUID of player%::%loop-number%} to 0
- set pitch of {home.%UUID of player%::%loop-number%} to 0
- send "&6あなたのホーム%loop-number%をworld: %player's world%, %location of player%に設定しました"
- set {_setflag} to 1
- stop loop
- {_setflag} is not set
- send "&cホームが設定できませんでした"
- send "&cホームをどれか一つリセットするか番号を指定して上書きしてください"
- command /deletehome [<text>]:
- aliases: /delhome, /resethome
- trigger:
- if arg is set:
- if arg is "all":
- if {home.%UUID of player%::*} is not set:
- send "&cホームが一つも設定されていません"
- else if {home.%UUID of player%::*} is set:
- delete {home.%UUID of player%::*}
- send "&6ホームをすべて消去しました"
- else:
- set {_num} to arg parsed as integer
- if {_num} is not set:
- send "&c番号を指定してください"
- else if {_num} is set:
- if {_num} is not between 1 and {@maxhome}:
- send "&cホームは1から{@maxhome}番までしか存在できません"
- else:
- if {home.%UUID of player%::%arg%} is not set:
- send "&cホーム%arg%は存在しません"
- else if {home.%UUID of player%::%arg%} is set:
- delete {home.%UUID of player%::%arg%}
- send "&6ホーム%arg%を消去しました"
- else if arg is not set:
- send "&c番号を指定してください"
- command /homelist:
- trigger:
- loop {@maxhome} times:
- if {home.%UUID of player%::%loop-number%} is not set:
- set {_homeinfo::%loop-number%} to "&6world: &7なし&6, x: &7なし&6, y: &7なし&6, z: &7なし"
- else if {home.%UUID of player%::%loop-number%} is set:
- set {_homeinfo::%loop-number%} to "&6world: %{home.%UUID of player%::%loop-number%}'s world%, %{home.%UUID of player%::%loop-number%}%"
- loop {_homeinfo::*}:
- send "&6ホーム%loop-index%: %loop-value%"
- command /home [<text>]:
- trigger:
- if arg is set:
- set {_num} to arg parsed as integer
- if {_num} is not set:
- send "&c番号を指定してください"
- else if {_num} is set:
- if {_num} is not between 1 and {@maxhome}:
- send "&cホームは1から{@maxhome}番までしか存在できません"
- else:
- if {home.%UUID of player%::%arg%} is not set:
- send "&cホーム%arg%は存在しません"
- else if {home.%UUID of player%::%arg%} is set:
- teleport player to {home.%UUID of player%::%arg%}
- send "&6あなたをホーム%arg%にテレポートしました"
- else if arg is not set:
- send "&c番号を指定してください"
Advertisement
Add Comment
Please, Sign In to add comment