Advertisement
Blue_Tec

Untitled

Jun 8th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. command /admin [<text>]:
  2. permission: skript.admin
  3. trigger:
  4. if arg-1 is not set:
  5. message "&c/admin setspawn1 - 赤チームのポイントを設定"
  6. message "&c/admin setspawn2 - 青チームのポイントを設定"
  7. message "&c/admin stop - スタート中のゲームを強制終了"
  8. message "&c/admin reload - Skriptの再起動"
  9. message "&c/admin start - バグが起きた際に、強制スタート"
  10. if arg-1 is set:
  11. if arg-1 is "setspawn1":
  12. set {game.spawn.1} to location of player
  13. message "&7Completed! INFO:%{game.spawn.1}% --> redpoint"
  14. if arg-1 is "setspawn2":
  15. set {game.spawn.2} to location of player
  16. message "&7Completed! INFO:%{game.spawn.2}% --> bluepoint"
  17. if arg-1 is "stop":
  18. message "&c未完成"
  19. if arg-1 is "reload":
  20. broadcast "&7Skriptの再起動中です…ラグにご注意ください。"
  21. execute console command "/skript reload gameapi"
  22. broadcast "&7同期完了!"
  23. if arg-1 is "start":
  24. if {gamestart} is true:
  25. message "&cゲームはスタートしています。"
  26. stop
  27. else:
  28. set {gamestart} to true
  29. message "&aゲームを開始しました!"
  30. set {join::*} to false
  31. set {join::red} to true
  32.  
  33. on walking on black concrete powder:
  34. if {gamestart} is true:
  35. if {join::red} is true:
  36. message "&7Joined &cRed &7Team."
  37. teleport player to {game.spawn.1}
  38. set {join::*} to false
  39. set {join::blue} to true
  40. stop
  41. if {join::blue} is true:
  42. message "&7Joined &1Blue &7Team."
  43. teleport player to {game.spawn.2}
  44. set {join::*} to false
  45. set {join::red} to true
  46. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement