Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================
- #/warpコマンド
- #===============================================
- command /warp <number>:
- usage: /warp <1|2|3> ... 設定したワープポイントへワープします
- trigger:
- if arg 1 is 1:
- if {%player%-warppoint-1} is not set:
- message "&a&lワープポイント1&eがセットされていません!"
- stop
- teleport player to {%player%-warppoint-1}
- message "&a&lワープポイント1&eへテレポートしました"
- else if arg 1 is 2:
- if {%player%-warppoint-2} is not set:
- message "&a&lワープポイント2&eがセットされていません!"
- stop
- teleport player to {%player%-warppoint-2}
- message "&a&lワープポイント2&eへテレポートしました"
- else if arg 1 is 3:
- if {%player%-warppoint-3} is not set:
- message "&a&lワープポイント3&eがセットされていません!"
- stop
- teleport player to {%player%-warppoint-3}
- message "&a&lワープポイント3&eへテレポートしました"
- #===============================================
- #ジャンプ地点登録
- #===============================================
- on rightclick on a piston:1:
- play sound "block.note.pling" at player
- open chest with 1 rows named "&9&lSave WarpPoint" to player
- format slot 2 of player with wool:2 named "&e&lWP1にセーブ" to run "swp %player% 1"
- format slot 4 of player with wool:3 named "&e&lWP2にセーブ" to run "swp %player% 2"
- format slot 6 of player with wool:4 named "&e&lWP3にセーブ" to run "swp %player% 3"
- #===============================================
- #/setwarppointコマンド
- #===============================================
- command /setwarppoint <offline player> <number>:
- permission: skript.admin
- aliases: /swp
- trigger:
- if arg 2 is 1:
- set {%arg 1%-warppoint-1} to location of arg 1
- message "&6&lワープポイント1&eにセットしました" to arg 1
- else if arg 2 is 2:
- set {%arg 1%-warppoint-2} to location of arg 1
- message "&6&lワープポイント2&eにセットしました" to arg 1
- else if arg 2 is 3:
- set {%arg 1%-warppoint-3} to location of arg 1
- message "&6&lワープポイント3&eにセットしました" to arg 1
Advertisement
Add Comment
Please, Sign In to add comment