I want to check if the player making the right Is in spectator mode, but when I put player executing right click it’s making me an error, I’m making a Skript that allows spectator see survival players inventory on right click them
Code:
on right click on a player:
if event-player's gamemode is spectator:
set {_Chest} to player's inventory
add helmet of player to {_Chest}
add chestplate of player to {_Chest}
add leggings of player to {_Chest}
add boots of player to {_Chest}
show chest inventory with 5 rows named "&7»&ePlayer Inventory&7»" to player
set the inventory of chest named "&7»&ePlayer Inventory&7»" to {_Chest}
Last edited: