When i try to click a slot in the inventory, when i click it, it does what the next slot of the inventory do. See what i'm doing wrong:
code_language.skript:
if inventory name of player's current inventory is "&bEnchantements":
if clicked inventory is not player's inventory:
cancel event
if clicked slot is 11:
wait a tick
open chest with 3 rows named "&9Affilatezza" to player
set slot 10 of player's current inventory to 1 of shiny paper named "&eAffilatezza 1"
set slot 11 of player's current inventory to 2 of shiny paper named "&eAffilatezza 2"
set slot 12 of player's current inventory to 3 of shiny paper named "&eAffilatezza 3"
set slot 13 of player's current inventory to 4 of shiny paper named "&eAffilatezza 4"
set slot 14 of player's current inventory to 5 of shiny paper named "&eAffilatezza 5"
set slot 26 of player's current inventory to sign named "&e<- &7Ritorna al menù precedente"