#I need help for a event bug

1 messages · Page 1 of 1 (latest)

fast tapir
#

Basicly everytime i make a gui with skript-gui everything works unless i try to make a on inventory clicks for the gui nothing happens literally and idk why cuz it work in my other server but on this one no ? This is all my plugins:

FancyHolograms, ajLeaderboards, Citizens, CoreProtect, FastAsyncWorldEdit, ItemEdit, LiteBans, LuckPerms, MinehutPlugin, Multiverse-Core, Multiverse-Portals, NexEngine, nightcore, OpenInv, packetevents, PlaceholderAPI, PoaSk, ProtocolLib, SkBee, SkQuery, skRayFall, Skript, skript-gui, skript-placeholders, skript-reflect, SkriptJSON, TAB, Vault, ViaBackwards, ViaRewind, ViaVersion, Vulcan, WorldGuard

The skript in question:

command /gui:
trigger:
create a new gui with virtual chest inventory with 1 row named "&fGui"
open last gui to player
set slot 4 of player's current inventory to dirt named "&7Dirt"

on inventory click:
if name of event-inventory is "&fGui":
if name of event-item is "&7Dirt":
send "Hello" to event-player

That's just an example but anything after on inventory clicks just doesnt work

Please help me

cloud pawn
#

yeah this issue happend to me too

fast tapir
#

Really?

#

I think i know you davd

slender sleet
#

if clicked slot is (number):

#

also use cancel event after the name of event-inventory

#

that way players cannot take stuff out

finite kernel
#
  1. Format your code
  2. Its usually formatted then opened
  3. delete skquery and skrayfall
cloud pawn
fast tapir
#

they already cant without cancel event

fast tapir
finite kernel
#

they are outdated and cause issues

fast tapir
#

alright

#

ill try

#

bruh i removed them now gui still doesnt work it broke some of my skript

finite kernel
#

well yeah you gotta write it in skript/skbee syntax

fast tapir
#

how

#

i fixed

#

i removed skript-gui