après décompilation, il semblerais qu'il n'ai pas prevue de nom pour l'emplacement du bouclier.
mais j'ai trouvé un élémént qui correspond a la doc du bukkit https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/EntityEquipment.html
le " getItemInOffHand() " qui dans Skript 2.2 dev-29 correspond a " OFF_HAND "
peut être que " the off_hand of player's "
peut
fonctionné
je testerais dans l'après midi.
Edit ------------------------------------------------------------------------------------------
Voila après recherche et Test c'est " off hand tool " ou " offhand tool " qu'il faut utiliser, quand au numero de slot il semblerais que ce soit le N° 40
Voila un bout de code qui a tres bien fonctioné pour moi
Serveur : Spigot 1.11.2-R0.1
Skript : 2.2-dev29
Addon : Aucun
command /hand:
trigger:
message "1 : %offhand tool of player%"
wait 2 seconds
set offhand tool of player to torch
enchant the player's offhand tool with projectile protection 5
message "2 : %off hand tool of player%"
wait 2 seconds
set offhand tool of player to stone
message "3 : %slot 40 of player%"