UDON_JP

SkyWarsJoinSkript

Apr 13th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. command /swsolojoin <player>:
  2. aliases: /swsj
  3. trigger:
  4. if {solo::*} contains arg-1:
  5. send "&c既にゲームに参加しています。"
  6. stop
  7. add arg-1 to {solo::*}
  8. remove all items from arg-1's inventory
  9. execute console command "/mv tp %arg-1% map1"
  10. execute console command "/menu grab %arg-1% wait"
  11. send "&7%arg-1% &eがゲームに参加しました! (&b%amount of {solo::*}%&e/&b8&e)!" to {solo::*}
  12. if amount of {solo::*} is 1:
  13. loop {map1::*}:
  14. add loop-value to {teleport::*}
  15. loop {solo::*}:
  16. set {_position} to random element out of {teleport::*}
  17. teleport loop-value to {_position}
  18. remove {_position} from {teleport::*}
  19. delete {teleport::*}
Advertisement
Add Comment
Please, Sign In to add comment