Advertisement
siso_Friends

Untitled

Feb 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. on rightclick holding iron sword:
  2. name of held item contains "攻城戦に参加する"
  3. set {_team} to random integer between 1 and 2
  4. if {_team} is 1:
  5. execute console command "/pex user %player% remove Red.sk"
  6. execute console command "/pex user %player% remove Blue.sk"
  7. execute console command "/scoreboard teams join Red %player%"
  8. execute console command "/pex user %player% prefix &c[Red]&f"
  9. execute console command "/pex user %player% add Red.sk"
  10. message "&6あなたは&c赤&6チームになりました"
  11. clear player's inventory
  12. if {_team} is 2:
  13. execute console command "/pex user %player% remove Red.sk"
  14. execute console command "/pex user %player% remove Blue.sk"
  15. execute console command "/scoreboard teams join Blue %player%"
  16. execute console command "/pex user %player% prefix &9[Blue]&f"
  17. execute console command "/pex user %player% add Blue.sk"
  18. message "&6あなたは&9青&6チームになりました"
  19. clear player's inventory
  20. stop
  21. on rightclick holding cookie:
  22. loop all players:
  23. if loop-player has permission "Red.sk":
  24. kill the loop-player
  25. execute console command "/tp @a[team=Red] -2 70 -39"
  26. if loop-player has permission "Blue.sk":
  27. kill the loop-player
  28. execute console command "/tp @a[team=Blue] -6 106 108"
  29. broadcast "&6はい、よーいスタート"
  30. broadcast "&a↓ルール↓"
  31. broadcast "&c赤&aチームの方は青チームのリースポーン地点(ガラスに囲まれたでかい塔)のエンドストーンを壊せば勝ちです"
  32. broadcast "&9青&aチームの方は赤チームのリスポーン地点(サーバーに入るときにスポーンするところ)の看板を押せば勝ちです"
  33. add -2 to {kouzyousenn}
  34. on first join:
  35. if {kouzyousenn} is less than 2:
  36. give feather named "&b攻城戦途中参加" to player
  37. stop
  38. on join:
  39. if {kouzyousenn} is less than 2:
  40. give feather named "&b攻城戦途中参加" to player
  41. stop
  42. on rightclick holding feather:
  43. name of held item contains "攻城戦途中参加"
  44. if {_team} is 1:
  45. execute console command "/pex user %player% remove Red.sk"
  46. execute console command "/pex user %player% remove Blue.sk"
  47. execute console command "/scoreboard teams join Red %player%"
  48. execute console command "/pex user %player% prefix &c[Red]&f"
  49. execute console command "/pex user %player% add Red.sk"
  50. message "&6あなたは&c赤&6チームになりました"
  51. clear player's inventory
  52. if player has permission "Red.sk":
  53. kill the player
  54. execute console command "/tp @a[team=Red] -2 70 -39"
  55. if {_team} is 2:
  56. execute console command "/pex user %player% remove Red.sk"
  57. execute console command "/pex user %player% remove Blue.sk"
  58. execute console command "/scoreboard teams join Blue %player%"
  59. execute console command "/pex user %player% prefix &9[Blue]&f"
  60. execute console command "/pex user %player% add Blue.sk"
  61. message "&6あなたは&9青&6チームになりました"
  62. clear player's inventory
  63. if player has permission "Blue.sk":
  64. kill the player
  65. execute console command "/tp @a[team=Blue] -6 106 108"
  66. stop
  67. on respawn:
  68. if player has permission "Red.sk":
  69. execute console command "/tp %player% -2 70 -39"
  70. if player has permission "Blue.sk":
  71. execute console command "/tp %player% -6 106 108"
  72. on break of end stone:
  73. broadcast "&e%player%が&8エンドストーンを壊し、赤軍の勝利となった"
  74. loop all players:
  75. execute console command "/pex user %loop-player% remove Red.sk"
  76. execute console command "/pex user %loop-player% remove Blue.sk"
  77. wait 10 seconds
  78. execute console command "/tp @a -2 70 -58"
  79. add 2 to {kouzyousenn}
  80. stop
  81. on rightclick:
  82. block is a sign
  83. if player has permission "Blue.sk":
  84. broadcast "&e%player%が&a看板をクリックした、よって青軍の勝利となった"
  85. loop all players:
  86. execute console command "/pex user %loop-player% remove Red.sk"
  87. execute console command "/pex user %loop-player% remove Blue.sk"
  88. wait 10 seconds
  89. execute console command "/tp @a -2 70 -58"
  90. add 2 to {kouzyousenn}
  91. stop
  92. command /ko:
  93. permission: skript.admin
  94. trigger:
  95. loop all players:
  96. kill loop-player
  97. give iron sword named "攻城戦に参加する" to loop-player
  98. broadcast "これから攻城戦を開始します、参加方法は鉄剣右クリです"
  99. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement