kazuken0814

home

Sep 21st, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. command /homeset <text>:
  2. permission: skript.admin
  3. trigger:
  4. if {homelist::%arg%} is set:
  5. message "&bすでに存在しています"
  6. stop
  7. set {homelist::%arg%} to location of player
  8. message "&b%arg%を追加しました"
  9. command /delhome <text>:
  10. permission: skript.admin
  11. trigger:
  12. if {homelist::%arg%} is set:
  13. delete {homelist::%arg%}
  14. message "&c%arg%を削除しました"
  15. if {homelist::%arg%} is not set:
  16. message "%arg%はありません"
  17. command /home <text>:
  18. trigger:
  19. if {homelist::%arg%} is set:
  20. teleport player to {homelist::%arg%}
  21. else:
  22. message "%arg%はありません"
  23. command /homelist:
  24. trigger:
  25. loop {homelist::*}:
  26. set {_homes} to "%{_homes}%,%loop-index%"
  27. replace "<none>," in {_homes} with ""
  28. message "%{_homes}%"
Advertisement
Add Comment
Please, Sign In to add comment