Coding Plugin, Doesnt seem to work

Ive been coding a plugin that basically is like destiny 2 in minecraft. But ever since i added a GUI, that GUI just broke on me. If anyone can help out Id love that!
34 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by srwinter#0
ProGamingDk
ProGamingDk2y ago
we kinda need more info like logs and the code
Admincraft Meta
Please use a paste service instead!
Paste services are more mobile friendly and easier to read than just posting a log file
Requested by srwinter#0
SrWinter
SrWinterOP2y ago
Thats my main plugin that has the GUI code in
ProGamingDk
ProGamingDk2y ago
is this chatgpt
SrWinter
SrWinterOP2y ago
Half Im Coding with another person i resorted to that because i literally cannot fix this ive looked so much and no matter what i do i cant fix it
ProGamingDk
ProGamingDk2y ago
do u get a error when opening the menu
SrWinter
SrWinterOP2y ago
no nothing, I just can take items out the GUI and nothing happends when i click it
Lunaiskey
Lunaiskey2y ago
eww why do you have all your code in your main class
ProGamingDk
ProGamingDk2y ago
^^
SrWinter
SrWinterOP2y ago
Most is split off I have 3 other files
ProGamingDk
ProGamingDk2y ago
thats still alot of code in main class ...
SrWinter
SrWinterOP2y ago
plus im new to mainly intellj so i dont know that much still learning from friend
Lunaiskey
Lunaiskey2y ago
so what exactly is the issue, whjen you say its not working, whats not working
SrWinter
SrWinterOP2y ago
I can just take stuff out the GUI, there is supposed to be a another GUI after you click the first one of one of the 3 options. That also doesnt display
Lunaiskey
Lunaiskey2y ago
whats this main class sub class bullshit?
SrWinter
SrWinterOP2y ago
What do you mean? Like the code in there
Lunaiskey
Lunaiskey2y ago
i see constant calling up configuration, why are the inventories being generated from a yaml file?
SrWinter
SrWinterOP2y ago
Shouldnt be
Lunaiskey
Lunaiskey2y ago
if your still learning this is more complex then it has to be
SrWinter
SrWinterOP2y ago
Like i said, Im just learning from my friend who did most of this Im just trying to learn from what he did
Lunaiskey
Lunaiskey2y ago
if you dont want to modify the inventories at runtime then just hardcode the inventories
SrWinter
SrWinterOP2y ago
How?
Lunaiskey
Lunaiskey2y ago
drop everything referring to configuration and manually create the itemstacks for the gui
SrWinter
SrWinterOP2y ago
How would i do that just literally remove everything from the mainclass
Lunaiskey
Lunaiskey2y ago
also for identifying the inventory create a class that extends inventoryholder and some form of identifier variable in it also dont just copy and paste what your friend does
SrWinter
SrWinterOP2y ago
Alright
Lunaiskey
Lunaiskey2y ago
also join helpchat the discord server
SrWinter
SrWinterOP2y ago
Also, How would i be able to split the code of better into so not much is in mainclass
Lunaiskey
Lunaiskey2y ago
well you quite simply move the methods into their own class for example, your listeners in their own class
SrWinter
SrWinterOP2y ago
I see okay
Lunaiskey
Lunaiskey2y ago
also your usually better off having a single listener class per subtype of listener such as Player, Entity, World, etc move the inventoryclickevent to its own listener class drop everything relating to Configuration for now your oncommand should be in its own class aswell

Did you find this page helpful?