Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick holding iron sword:
- name of held item contains "攻城戦に参加する"
- set {_team} to random integer between 1 and 2
- if {_team} is 1:
- execute console command "/pex user %player% remove Red.sk"
- execute console command "/pex user %player% remove Blue.sk"
- execute console command "/scoreboard teams join Red %player%"
- execute console command "/pex user %player% prefix &c[Red]&f"
- execute console command "/pex user %player% add Red.sk"
- message "&6あなたは&c赤&6チームになりました"
- clear player's inventory
- if {_team} is 2:
- execute console command "/pex user %player% remove Red.sk"
- execute console command "/pex user %player% remove Blue.sk"
- execute console command "/scoreboard teams join Blue %player%"
- execute console command "/pex user %player% prefix &9[Blue]&f"
- execute console command "/pex user %player% add Blue.sk"
- message "&6あなたは&9青&6チームになりました"
- clear player's inventory
- stop
- on rightclick holding cookie:
- loop all players:
- if loop-player has permission "Red.sk":
- kill the loop-player
- execute console command "/tp @a[team=Red] -2 70 -39"
- if loop-player has permission "Blue.sk":
- kill the loop-player
- execute console command "/tp @a[team=Blue] -6 106 108"
- broadcast "&6はい、よーいスタート"
- broadcast "&a↓ルール↓"
- broadcast "&c赤&aチームの方は青チームのリースポーン地点(ガラスに囲まれたでかい塔)のエンドストーンを壊せば勝ちです"
- broadcast "&9青&aチームの方は赤チームのリスポーン地点(サーバーに入るときにスポーンするところ)の看板を押せば勝ちです"
- add -2 to {kouzyousenn}
- on first join:
- if {kouzyousenn} is less than 2:
- give feather named "&b攻城戦途中参加" to player
- stop
- on join:
- if {kouzyousenn} is less than 2:
- give feather named "&b攻城戦途中参加" to player
- stop
- on rightclick holding feather:
- name of held item contains "攻城戦途中参加"
- if {_team} is 1:
- execute console command "/pex user %player% remove Red.sk"
- execute console command "/pex user %player% remove Blue.sk"
- execute console command "/scoreboard teams join Red %player%"
- execute console command "/pex user %player% prefix &c[Red]&f"
- execute console command "/pex user %player% add Red.sk"
- message "&6あなたは&c赤&6チームになりました"
- clear player's inventory
- if player has permission "Red.sk":
- kill the player
- execute console command "/tp @a[team=Red] -2 70 -39"
- if {_team} is 2:
- execute console command "/pex user %player% remove Red.sk"
- execute console command "/pex user %player% remove Blue.sk"
- execute console command "/scoreboard teams join Blue %player%"
- execute console command "/pex user %player% prefix &9[Blue]&f"
- execute console command "/pex user %player% add Blue.sk"
- message "&6あなたは&9青&6チームになりました"
- clear player's inventory
- if player has permission "Blue.sk":
- kill the player
- execute console command "/tp @a[team=Blue] -6 106 108"
- stop
- on respawn:
- if player has permission "Red.sk":
- execute console command "/tp %player% -2 70 -39"
- if player has permission "Blue.sk":
- execute console command "/tp %player% -6 106 108"
- on break of end stone:
- broadcast "&e%player%が&8エンドストーンを壊し、赤軍の勝利となった"
- loop all players:
- execute console command "/pex user %loop-player% remove Red.sk"
- execute console command "/pex user %loop-player% remove Blue.sk"
- wait 10 seconds
- execute console command "/tp @a -2 70 -58"
- add 2 to {kouzyousenn}
- stop
- on rightclick:
- block is a sign
- if player has permission "Blue.sk":
- broadcast "&e%player%が&a看板をクリックした、よって青軍の勝利となった"
- loop all players:
- execute console command "/pex user %loop-player% remove Red.sk"
- execute console command "/pex user %loop-player% remove Blue.sk"
- wait 10 seconds
- execute console command "/tp @a -2 70 -58"
- add 2 to {kouzyousenn}
- stop
- command /ko:
- permission: skript.admin
- trigger:
- loop all players:
- kill loop-player
- give iron sword named "攻城戦に参加する" to loop-player
- broadcast "これから攻城戦を開始します、参加方法は鉄剣右クリです"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement