Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- player's gamemode is survival
- set player's gamemode to adventure
- command /setkit [<text>]:
- permission: duel.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg-1 is not set:
- send "&cUsage: /setkit <arena>"
- stop
- if {arena::%arg-1%} is not set:
- send "&c%arg-1%は存在しません"
- stop
- if {arena::%arg-1%} is set:
- send "&bキットを設定しました"
- set {_slot} to 0
- loop 41 times:
- set {kit%arg-1%::%{_slot}%} to slot {_slot} of player's inventory
- add 1 to {_slot}
- command /settp1 [<text>]:
- permission: duel.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg-1 is not set:
- send "&cUsage: /settp1 <arena>"
- stop
- if {arena::%arg-1%} is not set:
- send "&c%arg-1%は存在しません"
- stop
- if {arena::%arg-1%} is set:
- set {arena%arg-1%::tp1} to location of player
- send "&b%arg-1%のテレポート地点1を%{arena%arg-1%::tp1}%に設定しました"
- command /settp2 [<text>]:
- permission: duel.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg-1 is not set:
- send "&cUsage: /settp2 <arena>"
- stop
- if {arena::%arg-1%} is not set:
- send "&c%arg-1%は存在しません"
- stop
- if {arena::%arg-1%} is set:
- set {arena%arg-1%::tp2} to location of player
- send "&b%arg-1%のテレポート地点2を%{arena%arg-1%::tp2}%に設定しました"
- command /addarena [<text>]:
- permission: duel.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg-1 is not set:
- send "&cUsage: /addarena <name>"
- stop
- if {arena::%arg-1%} is set:
- send "&c%arg-1%は既に存在しています"
- stop
- if {arena::%arg-1%} is not set:
- send "&bアリーナを追加しました%nl%&b/settp1,&b/settp2でプレイヤーのテレポート地点を設定し、/setkitでキットを設定してください &7(設定しなかった場合、現在の位置がテレポート地点になります)"
- set {arena::%arg-1%} to "%arg-1%"
- set {arena%arg-1%::tp1} to location of player
- set {arena%arg-1%::tp2} to location of player
- command /arenalist:
- permission: duel.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if {arena::*} is not set:
- send "&bアリーナは存在しません"
- stop
- else:
- loop {arena::*}:
- send "&bName: &3%{arena::%loop-value%}% &bTP1: &3%{arena%loop-value%::tp1}% &bTP2: &3%{arena%loop-value%::tp2}%"
- command /deletearena [<text>]:
- aliases: /delarena
- permission: duel.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg-1 is not set:
- send "&cUsage: /deletearena <arena>"
- stop
- if {arena::%arg-1%} is not set:
- send "&c%arg-1%は存在しません"
- stop
- if {arena::%arg-1%} is set:
- delete {arena::%arg-1%}
- delete {arena%arg-1%::tp1}
- delete {arena%arg-1%::tp2}
- send "&b%arg-1%を削除しました"
- command /duel [<offline player>] [<text>]:
- trigger:
- if arg-1 is not set:
- send "&cUsage: /duel <player> <arena>"
- stop
- if arg-2 is not set:
- send "&cUsage: /duel <player> <arena>"
- stop
- if arg-1 is player:
- send "&c自分自身にDUELを申し込むことはできません!"
- stop
- if {duel%arg-2%} is 1:
- send "&c現在%arg-2%は使用中です"
- stop
- if arg-1 is offline:
- send "&c%arg-1%はオフラインです"
- stop
- if {arena::%arg-2%} is not set:
- send "&c%arg-2%は存在しません"
- stop
- else:
- set {duel.%player%} to 0
- set {request%arg-1%::player} to player
- set {request%arg-1%::arena} to arg-2
- send "&b%arg-1%に%arg-2%でのDUELを申し込みました%nl%&b10秒以内に承認されればDUELを開始します"
- send "&b%player%から%arg-2%でのDUELを申し込まれました%nl%&3&n/accept&bで承認できます%nl%&b10秒以内に承認すればDUELを開始します" to arg-1
- wait 10 second
- if {duel.%player%} is 0:
- send "&b10秒経過しても承認されなかったためDUELの申し込みは無効になりました"
- delete {duel.%player%}
- delete {request%arg-1%::player}
- delete {request%arg-1%::arena}
- on quit:
- if {duel.arena.%player%} is set:
- delete {duel.arena.%player%}
- command /accept:
- trigger:
- if {request%player%::*} is not set:
- send "&cDUEL申し込まれていないか、申し込みが無効になっています"
- stop
- if {duel.%player%} is 0:
- send "&cDUELを申し込んでいるため他のDUELを開始できません"
- stop
- if {duel.%player%} is 1:
- send "&c試合中のため他のDUELを開始できません"
- stop
- else if {request%player%::*} is set:
- set {duel%{request%player%::arena}%} to 1
- set {duel.%player%} to 1
- set {duel.%{request%player%::player}%} to 1
- send "&b申し込みが承認されたためDUELを開始します" to {request%player%::player}
- wait 1 second
- send "&b試合開始まであと3秒"
- send "&b試合開始まであと3秒" to {request%player%::player}
- play sound "block_note_pling" to player with volume 1 and pitch 5
- play sound "block_note_pling" to {request%player%::player} with volume 1 and pitch 5
- wait 1 second
- send "&b試合開始まであと2秒"
- send "&b試合開始まであと2秒" to {request%player%::player}
- play sound "block_note_pling" to player with volume 1 and pitch 5
- play sound "block_note_pling" to {request%player%::player} with volume 1 and pitch 5
- wait 1 second
- send "&b試合開始まであと1秒"
- send "&b試合開始まであと1秒" to {request%player%::player}
- play sound "block_note_pling" to player with volume 1 and pitch 5
- play sound "block_note_pling" to {request%player%::player} with volume 1 and pitch 5
- wait 1 second
- teleport player to {arena%{request%player%::arena}%::tp1}
- teleport {request%player%::player} to {arena%{request%player%::arena}%::tp2}
- set player's health to 10
- set {request%player%::player}'s health to 10
- set player's food to 10
- set {request%player%::player}'s food to 10
- send "&b試合が開始しました!"
- send "&b試合が開始しました!" to {request%player%::player}
- set {opponent.%player%} to {request%player%::player}
- set {opponent.%{request%player%::player}%} to player
- set {battlearena.%player%} to {request%player%::arena}
- set {battlearena.%{request%player%::player}%} to {request%player%::arena}
- play sound "entity_experience_orb_pickup" to player with volume 1 and pitch 5
- play sound "entity_experience_orb_pickup" to {request%player%::player} with volume 1 and pitch 5
- set {_slot} to 0
- loop 41 times:
- set slot {_slot} of player's inventory to {kit%{request%player%::arena}%::%{_slot}%}
- set slot {_slot} of {request%player%::player}'s inventory to {kit%{request%player%::arena}%::%{_slot}%}
- add 1 to {_slot}
- delete {request%player%::*}
- on death of player:
- if {duel.%victim%} is 1:
- strike lightning effect at victim
- broadcast "&b%{opponent.%victim%}%が%{battlearena.%victim%}%で%victim%との試合に勝利しました!"
- if shooter is set:
- set the death message to "&b%victim%&7 was shot by &b%attacker%"
- else if shooter is not set:
- if attacker is set:
- set the death message to "&b%victim%&7 was slain by &b%attacker%"
- if attacker is not set:
- set the death message to "&b%victim%&7 died"
- wait 3 second
- force victim to respawn
- clear victim's inventory
- clear {opponent.%player%}'s inventory
- set victim's health to 10
- set {opponent.%victim%}'s health to 10
- set victim's food to 10
- set {opponent.%victim%}'s food to 10
- wait 1 tick
- teleport victim to "world"'s spawn point
- teleport {opponent.%victim%} to "world"'s spawn point
- delete {duel%{battlearena.%victim%}%}
- delete {duel.%victim%}
- delete {duel.%{opponent.%victim%}%}
- delete {opponent.%{opponent.%victim%}%}
- delete {battlearena.%{opponent.%victim%}%}
- delete {opponent.%victim%}
- delete {battlearena.%victim%}
- on join:
- teleport player to "world"'s spawn point
- clear player's inventory
- set player's food to 10
- set player's health to max health of player
- on quit:
- if {duel.%player%} is 1:
- strike lightning effect at player
- broadcast "&b%{opponent.%player%}%が%{battlearena.%player%}%で%player%との試合に勝利しました!"
- wait 3 second
- clear {opponent.%player%}'s inventory
- teleport player to "world"'s spawn point
- teleport {opponent.%player%} to "world"'s spawn point
- delete {duel%{battlearena.%player%}%}
- delete {duel.%player%}
- delete {duel.%{opponent.%player%}%}
- delete {opponent.%{opponent.%player%}%}
- delete {battlearena.%{opponent.%player%}%}
- delete {opponent.%player%}
- delete {battlearena.%player%}
- on drop:
- if {duel.%player%} is 1:
- cancel event
Add Comment
Please, Sign In to add comment