Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #BuyKitPVPserver 専用Skript
- #定義づけ point
- variables:
- {%player%.point} = 1000
- #killした時の処理
- on death of player:
- if attacker is a player:
- message "&a+&e%{killpoint}%&apoint"
- add {killpoint} to {%attacker%.point}
- #---運営用コマンド---
- #運営用のhelp
- command /aphelp:
- trigger:
- player has permission "pvp.admin"
- message "&d----------------------------"
- message "&bBuyKitPVPserver 運営用help"
- message "&b必要permission → pvp.admin"
- message "&d----------------------------"
- message "&e/aphelp &a...このhelpが出ます"
- message "&e/apkillpoint <数値>"
- message "&a ... killごとの入手pointの変更"
- message "&e/appa <player> <数値>"
- message "&a ... pointを増加させる"
- message "&e/apps <player> <数値>"
- message "&a ... pointを設定する"
- message "&e/appaall <数値>"
- message "&a ... 全員のpointを増加させる"
- message "&d----------------------------"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
- #killごとの入手pointの変更コマンド
- command /apkillpoint <number>:
- trigger:
- player has permission "pvp.admin"
- set {killpoint} to arg 1
- broadcast "&a----------------------------"
- broadcast "&a運営の&e%player%&aによって"
- broadcast "&akillごとの入手pointが"
- broadcast "&a通常の&e%{killpoint}/100%&aである"
- broadcast "&e%arg 1%&aになりました!"
- broadcast "&a----------------------------"
- command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53"
- #point変動コマンド
- command /appa <player> <number>:
- trigger:
- player has permission "pvp.admin"
- add arg 2 to {%arg 1%.point}
- broadcast "----------------------------"
- broadcast "&a運営の&e%player%&aによって"
- broadcast "&e%arg 1%&aさんのpointが"
- broadcast "&e%arg 2% &a増加しました"
- broadcast "----------------------------"
- command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5"
- command /apps <player> <number>:
- trigger:
- player has permission "pvp.admin"
- set {%arg 1%.point} to arg 2
- broadcast "----------------------------"
- broadcast "&a運営の&e%player%&aによって"
- broadcast "&e%arg 1%&aさんのpointが"
- broadcast "&e%arg 2% &aになりました"
- broadcast "----------------------------"
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
- command /appaall <number>:
- trigger:
- player has permission "pvp.admin"
- loop all players:
- add arg 1 to {%loop-player%.point}
- message "----------------------------"
- message "&a運営の&e%player%&aによって"
- message "&eOnlinePlayer全員のpointが"
- message "&e%arg 1% &a増加しました!!"
- message "----------------------------"
- command "/playsound minecraft:entity.player.levelup ambient %player% ~ ~ ~ 1.0 0.53"
- #---一般用コマンド---
- #一般用のhelp
- command /phelp:
- trigger:
- message "&b----------------------------"
- message "&dBuyKitPVPserver 一般用help"
- message "&b----------------------------"
- message "&e/phelp &a...このhelpが出ます"
- message "&e/pmenu &a... menuを開きます"
- message "&e/pkit &a... kit管理menuを開きます"
- message "&e/pp &a... 自分のpointを観覧します"
- message "&b----------------------------"
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
- #menuコマンド
- command /pmenu <player=%player%>:
- trigger:
- open chest with 2 row named "&aBKPメニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
- format slot 1 of arg 1 with 368 named "&aロビーにteleportする" to close then run [execute console command "/tp 1195 4 208"]
- format slot 9 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 17 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- #kitmenuコマンド
- command /pkit <player=%player%>:
- trigger:
- open chest with 2 row named "&aBKP kit管理メニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
- format slot 1 of arg 1 with book named "&ekit選択メニュー" to close then run [execute console command "/pkitselect %arg 1%"]
- format slot 2 of arg 1 with gold ingot named "&ekit購入メニュー" to close then run [execute console command "/pkitbuy %arg 1%"]
- format slot 9 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 17 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- #kitselectコマンド
- command /pkitselect <player=%player%>:
- trigger:
- open chest with 3 row named "&eBKP kit選択メニュー" to arg 1
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
- if {%arg 1%.1} is "true":
- format slot 1 of arg 1 with stick named "&e初心のkit" to run [execute console command "/kit %arg 1% 1"]
- else:
- format slot 1 of arg 1 with 160:14 named "&e初心のkit 未購入" to close
- if {%arg 1%.2} is "true":
- format slot 2 of arg 1 with 336 named "&eビギナーズkit" to run [execute console command "/kit %arg 1% 2"]
- else:
- format slot 2 of arg 1 with 160:14 named "&eビギナーズkit 未購入" to close
- format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- #kitbuyコマンド
- command /pkitbuy <player=%player%>:
- trigger:
- open chest with 3 row named "&eBKP kit購入メニュー"
- wait 1 tick
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
- if {%arg 1%.1} is not "true":
- format slot 1 of arg 1 with stick named "&e初心のkit" to run [execute console command "/kitbuy %arg 1% 1 500"]
- else:
- format slot 1 of arg 1 with 160:5 named "&e初心のkit 購入済" to close
- if {%arg 1%.2} is not "true":
- format slot 2 of arg 1 with 336 named "&eビギナーズkit" to run [execute console command "/kitbuy %arg 1% 500"]
- else:
- format slot 2 of arg 1 with 160:5 named "&eビギナーズkit 購入済" to close
- format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
- format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
- stop
- #kit購入コマンド
- command /kitbuy <player=%player%> <number> <number>:
- trigger:
- if {%arg 1%.point} is arg 2 or {%arg 1%.point} > arg 2:
- remove arg 2 from {%arg 1%.point}
- set {%arg 1%.%arg 3%} to true
- command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53"
- message "<yellow>購入成功!" to arg 1
- message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
- else:
- message "<red>購入条件を満たしていません!" to arg 1
- message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
- #kit選択コマンド
- command /kit <player=%player%> <number>:
- trigger:
- set {%arg 1%.kit} to arg 2
- command "/menu grab %arg 1% %arg 2%"
- command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5"
- message "&bkitを選択しました"
- message "&blobbyモードに戻るをクリックで戻せます"
- #point確認コマンド
- command /myp <player>:
- trigger:
- command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5"
- message "&a%arg 1%の所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 1
- #動作
- on click with book:
- wait 1 tick
- execute console command "/pkit %player%"
- on click with nether star:
- wait 1 tick
- execute console command "/pmenu %player%"
- on click with emerald:
- wait 1 tick
- execute console command "/myp %player%"
- on click with gold ingot:
- wait 1 tick
- execute console command "/realm"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement