2020-10-24 03:31:01 +00:00
|
|
|
# --- KitPVP ---
|
|
|
|
on join:
|
|
|
|
if player's world is "minigames":
|
2020-10-24 04:33:04 +00:00
|
|
|
remove all items from player
|
2020-10-24 03:31:01 +00:00
|
|
|
set slot 1 of player's inventory to 1 of chest named "&fKitPVP"
|
|
|
|
stop
|
|
|
|
|
|
|
|
on respawn:
|
|
|
|
if player's world is "minigames":
|
|
|
|
set slot 1 of player's inventory to 1 of chest named "&fKitPVP"
|
|
|
|
stop
|
|
|
|
|
2020-10-24 04:33:04 +00:00
|
|
|
on quit:
|
|
|
|
if player's world is "minigames":
|
|
|
|
remove all items from player
|
|
|
|
stop
|
|
|
|
|
2020-10-24 03:31:01 +00:00
|
|
|
on leftclick:
|
|
|
|
if player's world is "minigames":
|
|
|
|
if event-item is chest named "&fKitPVP":
|
|
|
|
make player execute command "/kitpvp gui"
|
|
|
|
cancel the event
|
|
|
|
wait 2 tick
|
|
|
|
|
|
|
|
on rightclick:
|
|
|
|
if player's world is "minigames":
|
|
|
|
if event-item is chest named "&fKitPVP":
|
|
|
|
make player execute command "/kitpvp gui"
|
|
|
|
cancel the event
|
|
|
|
wait 2 tick
|
|
|
|
|
|
|
|
on inventory click:
|
|
|
|
if player's world is "minigames":
|
|
|
|
if event-item is chest named "&fKitPVP":
|
|
|
|
cancel the event
|
|
|
|
|
|
|
|
on drop:
|
|
|
|
if player's world is "minigames":
|
|
|
|
if event-item is chest named "&fKitPVP":
|
|
|
|
cancel the event
|
|
|
|
|
|
|
|
on pickup:
|
|
|
|
if player's world is "minigames":
|
|
|
|
if event-item is chest named "&fKitPVP":
|
|
|
|
delete event-entity
|
|
|
|
|
|
|
|
on death:
|
|
|
|
if player's world is "minigames":
|
|
|
|
clear drops
|