Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &6&lKitPvP &r
- #-#
- no-permission: &cこのコマンドを実行する権限がありません
- #-#
- title: &f&lようこそ! &6&lKitPvP&f&lサーバーへ!
- #-#
- subtitle: &f&lWelcome to &6&lKitPvP &f&lServer!
- #-#
- on join:
- if {kitpvpkills.%player%} is not set:
- set {kitpvpkills.%player%} to 0
- if {kitpvpdeaths.%player%} is not set:
- set {kitpvpdeaths.%player%} to 0
- clear player's inventory
- make console execute command "/effect %player% clear"
- set slot 0 of player to paper named "&c&lMy Status"
- set slot 2 of player to emerald named "&a&lShop"
- set slot 4 of player to nether star named "&f&lMain Menu"
- set slot 6 of player to chest named "&6&lKit Selector"
- set slot 8 of player to book named "&7&lServer Help"
- send player title "{@title}" with subtitle "{@subtitle}" for 5 seconds
- set the join message to "&a%player% さんが、サーバーにログインしました。"
- stop
- on first join:
- set {kitpvpkills.%player%} to 0
- set {kitpvpdeaths.%player%} to 0
- set {currentkillstreak.%player%} to 0
- set {bestkillstreak.%player%} to 0
- send player title "{@title}" with subtitle "{@subtitle}" for 5 seconds
- command /kitpvp [<text>] [<text>]:
- aliases: /kp
- trigger:
- if arg 1 is not set:
- if player has permission "kitpvp.admin":
- send "&3&l--------------------------------------------------"
- send "&7"
- send "&7/kitpvp setspawn &f: &fスポーン地点にテレポートします"
- send "&7/kitpvp spawn &f: &fスポーン地点を設定します"
- send "&7"
- send "&3&l--------------------------------------------------"
- else:
- send "{@no-permission}"
- if arg 1 is "setspawn":
- if player has permission "kitpvp.ss":
- set {spawn} to player's location
- send "{@prefix} &fKitPvPのスポーン地点を設定しました."
- stop
- else:
- send "{@no-permission}"
- if arg 1 is "spawn":
- teleport player to {spawn}
- set gamemode of player to survival
- stop
- on join:
- if {kitpvpkills.%player%} is not set:
- set {kitpvpkills.%player%} to 0
- if {kitpvpdeaths.%player%} is not set:
- set {kitpvpdeaths.%player%} to 0
- clear player's inventory
- make console execute command "/effect %player% clear"
- set slot 0 of player to paper named "&c&lMy Status"
- set slot 2 of player to emerald named "&a&lShop"
- set slot 4 of player to nether star named "&f&lMain Menu"
- set slot 6 of player to chest named "&6&lKit Selector"
- set slot 8 of player to book named "&7&lServer Help"
- set the join message to "&6%player% さんが、サーバーに&aログイン&6しました。"
- stop
- on quit:
- set the quit message to "&6%player% さんが、サーバーから&cログアウト&6しました。"
- on death:
- clear drops
- victim is a player
- attacker is a player
- add 1 to {kitpvpkills.%attacker%}
- add 1 to {kitpvpdeaths.%victim%}
- add 1 to {currentkillstreak.%attacker%}
- clear player's inventory
- make console execute command "/effect %player% clear"
- broadcast "[&6Kill Message&f] &c%victim%&fは、 &a%attacker%&fにキルされました"
- stop
- on first join:
- set {kitpvpkills.%player%} to 0
- set {kitpvpdeaths.%player%} to 0
- set {currentkillstreak.%player%} to 0
- set {bestkillstreak.%player%} to 0
- on respawn:
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to paper named "&c&lMy Status"
- set slot 2 of player to emerald named "&a&lShop"
- set slot 4 of player to nether star named "&f&lMain Menu"
- set slot 6 of player to chest named "&6&lKit Selector"
- set slot 8 of player to book named "&7&lServer Help"
- stop
- every second:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&6&lKitPvP"
- set score "&a" in sidebar of loop-player to 6
- set score "&fName: &a%loop-player% " in sidebar of loop-player to 5
- set score "&2" in sidebar of loop-player to 4
- set score "&fKills: &a%{kitpvpkills.%loop-player%}%" in sidebar of loop-player to 3
- set score "&fDeaths: &c%{kitpvpdeaths.%loop-player%}%" in sidebar of loop-player to 2
- set score "&2" in sidebar of loop-player to 1
- set score "&ehttps://discord.gg/5e4t3SS" in sidebar of loop-player to 0
- command /kitselect [<text>]:
- aliases: /ks
- trigger:
- if arg-1 is not set:
- wait 2 ticks
- open chest with 3 row named "&7[&aキットを選択&7]" to player
- wait 2 ticks
- format slot 0 of player with white stained glass pane named "&l" to close
- format slot 1 of player with white stained glass pane named "&l" to close
- format slot 2 of player with white stained glass pane named "&l" to close
- format slot 3 of player with white stained glass pane named "&l" to close
- format slot 4 of player with white stained glass pane named "&l" to close
- format slot 5 of player with white stained glass pane named "&l" to close
- format slot 6 of player with white stained glass pane named "&l" to close
- format slot 7 of player with white stained glass pane named "&l" to close
- format slot 8 of player with white stained glass pane named "&l" to close
- format slot 9 of player with white stained glass pane named "&l" to close
- format slot 10 of player with white stained glass pane named "&l" to close
- format slot 16 of player with white stained glass pane named "&l" to close
- format slot 17 of player with white stained glass pane named "&l" to close
- format slot 18 of player with white stained glass pane named "&l" to close
- format slot 19 of player with white stained glass pane named "&l" to close
- format slot 20 of player with white stained glass pane named "&l" to close
- format slot 21 of player with white stained glass pane named "&l" to close
- format slot 22 of player with white stained glass pane named "&l" to close
- format slot 23 of player with white stained glass pane named "&l" to close
- format slot 24 of player with white stained glass pane named "&l" to close
- format slot 25 of player with white stained glass pane named "&l" to close
- format slot 26 of player with white stained glass pane named "&l" to close
- format slot 10 of player with diamond sword named "&7[&f&lKnight&7]" with lore "&7[&a&lこのキットは使用可能です&7]" to close then run [execute player command "/kitselect knight"]
- format slot 11 of player with diamond chestplate named "&7[&b&lTank&7]" with lore "&7[&a&lこのキットは使用可能です&7]" to close then run [execute player command "/kitselect tank"]
- format slot 12 of player with bow named "&7[&6&lArcher&7]" with lore "&7[&a&lこのキットは使用可能です&7]" to close then run [execute player command "/kitselect archer"]
- if player doesn't have permission "kitselect.*" or "ks.pyro":
- format slot 13 of player with red stained glass pane of unbreaking 1 named "&7[&c&lPyro&e]" with lore "&7[&c&lこのキットは購入することで使用可能になります&7]" to be unstealable
- if player has permission "kitselect.*" or "ks.pyro":
- format slot 13 of player with flint and steel named "&7[&c&lPyro&7]" with lore "&7[&a&lこのキットは購入済みです&7]" to close then run [execute player command "/kitselect pyro"]
- if player doesn't have permission "kitselect.*" or "ks.witch":
- format slot 14 of player with red stained glass pane of unbreaking 1 named "&7[&a&lWitch&e]" with lore "&7[&c&lこのキットは購入することで使用可能になります&7]" to be unstealable
- if player has permission "kitselect.*" or "ks.witch":
- format slot 14 of player with potion named "&7[&a&lWitch&7]" with lore "&7[&a&lこのキットは購入済みです&7]" to close then run [execute player command "/kitselect witch"]
- if player doesn't have permission "kitselect.*" or "ks.assassin":
- format slot 15 of player with red stained glass pane of unbreaking 1 named "&7[&e&lAssasin&e]" with lore "&7[&c&lこのキットは購入することで使用可能になります&7]" to be unstealable
- if player has permission "kitselect.*" or "ks.assassin":
- format slot 15 of player with feather named "&7[&e&lAssassin&7]" with lore "&7[&a&lこのキットは購入済みです&7]" to close then run [execute player command "/kitselect assassin"]
- if arg-1 is "knight":
- loop all players:
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to diamond sword of sharpness 1 and unbreaking 3
- set slot 1 of player to 2 golden apple
- set slot 2 of player to 64 steak
- set slot 9 of player to 64 arrows
- equip player with iron helmet of protection 2 and unbreaking 3
- equip player with iron chestplate of protection 2 and unbreaking 3
- equip player with iron leggings of protection 2 and unbreaking 3
- equip player with iron boots of protection 2 and unbreaking 3
- message "[&6KitPvP&r] あなたはナイトを選択しました!"
- teleport player to {spawn}
- stop
- if arg-1 is "tank":
- loop all players:
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to iron sword of sharpness 1 and unbreaking 3
- set slot 1 of player to 2 golden apple
- set slot 2 of player to 64 steak
- set slot 9 of player to 64 arrows
- equip player with diamond helmet of protection 2 and unbreaking 3
- equip player with diamond chestplate of protection 2 and unbreaking 3
- equip player with diamond leggings of protection 2 and unbreaking 3
- equip player with diamond boots of protection 2 and unbreaking 3
- apply slowness to player for 9999 days
- message "[&6KitPvP&r] あなたはタンクを選択しました!"
- teleport player to {spawn}
- stop
- if arg-1 is "archer":
- loop all players:
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to stone sword of sharpness 1 and unbreaking 3
- set slot 1 of player to bow of power 3 and unbreaking 3
- set slot 2 of player to 2 golden apple
- set slot 3 of player to 64 steak
- set slot 9 of player to 64 arrows
- equip player with chainmail helmet of protection 1 and unbreaking 3
- equip player with chainmail chestplate of protection 1 and unbreaking 3
- equip player with chainmail leggings of protection 1 and unbreaking 3
- equip player with chainmail boots of protection 1 and unbreaking 3
- apply speed to player for 9999 days
- message "[&6KitPvP&r]あなたはアーチャーを選択しました!"
- teleport player to {spawn}
- stop
- if arg-1 is "pyro":
- loop all players:
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to iron sword of sharpness 1 and unbreaking 3
- set slot 1 of player to blaze rod of fire aspect 1
- set slot 2 of player to 2 golden apple
- set slot 3 of player to 64 steak
- set slot 9 of player to 64 arrows
- equip player with iron helmet of protection 1 and unbreaking 3
- equip player with gold chestplate of protection 2 and unbreaking 3
- equip player with gold leggings of protection 2 and unbreaking 3
- equip player with iron boots of protection 1 and unbreaking 3
- message "[&6KitPvP&r] あなたはパイロを選択しました!"
- teleport player to {spawn}
- stop
- if arg-1 is "witch":
- loop all players:
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to stone sword of sharpness 1 and unbreaking 3
- set slot 1 of player to chest named "&d&lPotion Pack"
- set slot 2 of player to 2 golden apple
- set slot 3 of player to 64 steak
- set slot 9 of player to 64 arrows
- equip player with chainmail helmet of protection 1 and unbreaking 3
- equip player with iron chestplate of protection 1 and unbreaking 3
- equip player with chainmail leggings of protection 1 and unbreaking 3
- equip player with chainmail boots of protection 1 and unbreaking 3
- message "[&6KitPvP&r] あなたはウィッチを選択しました!"
- teleport player to {spawn}
- stop
- if arg-1 is "assassin":
- loop all players:
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to gold sword of sharpness 3 and unbreaking 3
- set slot 1 of player to 2 feather named "&aLeap"
- set slot 2 of player to 2 golden apple
- set slot 3 of player to 64 steak
- set slot 9 of player to 64 arrows
- equip player with gold helmet of protection 1 and unbreaking 3
- equip player with iron chestplate of protection 1 and unbreaking 3
- equip player with gold leggings of protection 1 and unbreaking 3
- equip player with gold boots of protection 1 and unbreaking 3
- message "[&6KitPvP&r] あなたはアサシンを選択しました!"
- teleport player to {spawn}
- stop
- on rightclick holding paper:
- name of held item contains "&c&lMy Status"
- execute player command "/killstats"
- on rightclick holding emerald:
- name of held item contains "&a&lShop"
- execute player command "/store"
- on rightclick holding nether star:
- name of held item contains "&f&lMain Menu"
- execute player command "/menu open %player% jmm"
- on rightclick holding chest:
- name of held item contains "&6&lKit Selector"
- execute player command "/ks"
- on rightclick holding book:
- name of held item contains "&7&lServer Help"
- execute player command "/help"
- on rightclick holding name tag:
- execute player command "/menu open %player% sc"
- on rightclick holding feather:
- name of held item contains "&aLeap"
- play sound "ENTITY_WITHER_SHOOT" to player with volume 0.2 and pitch 1
- push the player forwards at speed 2
- apply speed to player for 5 seconds
- apply strength to player for 2 seconds
- remove 1 feather from player's inventory
- on rightclick holding chest:
- name of held item contains "&d&lPotion Pack"
- make console execute command "/give %player% 373:16428 1"
- make console execute command "/give %player% 373:16420 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement