This commit is contained in:
Christer Warén 2020-10-28 02:34:11 +02:00
parent 4802d491d6
commit c06268dade

View File

@ -25,6 +25,8 @@ command /kitpvp [<string>] [<string>]:
if {kitpvp.%player%.kit} is set: if {kitpvp.%player%.kit} is set:
if {kitpvp.%player%.kit} is "soldier": if {kitpvp.%player%.kit} is "soldier":
format slot 14 of player with iron chestplate named "&fKitit" with lore "Sotilas" to close then run [execute player command "/kitpvp setkit"] format slot 14 of player with iron chestplate named "&fKitit" with lore "Sotilas" to close then run [execute player command "/kitpvp setkit"]
if {kitpvp.%player%.kit} is "speedster":
format slot 14 of player with iron chestplate named "&fKitit" with lore "Vauhtihirmu" to close then run [execute player command "/kitpvp setkit"]
else: else:
format slot 14 of player with iron chestplate named "&fKitit" to close then run [execute player command "/kitpvp setkit"] format slot 14 of player with iron chestplate named "&fKitit" to close then run [execute player command "/kitpvp setkit"]
@ -98,14 +100,14 @@ command /kitpvp [<string>] [<string>]:
set player's chestplate to iron chestplate set player's chestplate to iron chestplate
set player's leggings to iron leggings set player's leggings to iron leggings
set player's boots to iron boots set player's boots to iron boots
set slot 1 of player's inventory to 1 of iron sword set slot 1 of player's inventory to 0 of iron sword
if {kitpvp.%player%.kit} is "speedster": if {kitpvp.%player%.kit} is "speedster":
set player's helmet to gold helmet set player's helmet to gold helmet
set player's chestplate to gold chestplate set player's chestplate to gold chestplate
set player's leggings to gold leggings set player's leggings to gold leggings
set player's boots to gold boots set player's boots to gold boots
set the player's walk speed to 0.6 set the player's walk speed to 0.6
set slot 1 of player's inventory to 1 of gold sword set slot 1 of player's inventory to 0 of gold sword
else: else:
make player execute command "/kitpvp" make player execute command "/kitpvp"