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
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
we kinda need more info
like logs
and the code
Please use a paste service instead!
Paste services are more mobile friendly and easier to read than just posting a log file
message.txt
Requested by srwinter#0
Thats my main plugin that has the GUI code in
is this chatgpt
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
do u get a error when opening the menu
no nothing, I just can take items out the GUI and nothing happends when i click it
eww
why do you have all your code in your main class
^^
Most is split off
I have 3 other files
thats still alot of code in main class
...
plus im new to mainly intellj so i dont know that much
still learning from friend
so what exactly is the issue, whjen you say its not working, whats not working
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
whats this main class sub class bullshit?
What do you mean? Like the code in there
i see constant calling up configuration, why are the inventories being generated from a yaml file?
Shouldnt be
if your still learning this is more complex then it has to be
Like i said, Im just learning from my friend who did most of this
Im just trying to learn from what he did
if you dont want to modify the inventories at runtime then just hardcode the inventories
How?
drop everything referring to configuration
and manually create the itemstacks for the gui
How would i do that just literally remove everything from the mainclass
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
Alright
also join helpchat
the discord server
Also, How would i be able to split the code of better into so not much is in mainclass
well you quite simply move the methods into their own class
for example, your listeners in their own class
I see okay
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