Recently Browsing

Posts

Yes, you cannot open the GUI from your ScheduledExecutorService thread. It must happen from the main minecraft thread.
Show the crash that happens when you just open the GUI normally from your command.

The main problem I made this thread for, that is some gui buttons show up and some do not.
Yes, I am using ClientCommandHandler to run my command.
So when I run the command /commandname gui I use Runnable to run the command at first(that is to open the main screen GuiSettings1()) and add 1 tick for it to run because Minecraft crashes if I do not add that tick/Runnable. Now when the GuiSettings1() is open I click on "Settings" option(Refer to code) which opens GuiSettings2() which contains some other buttons and stuff. This second time(clicking on "settings") when I am running GuiSettings2() I removed the Runnable thing from here. Even i am not sure why not adding a tick doesn't crash the game here but does in the first time opening the GUI.
Here is the Code:
I am opening the whole thing with the same command I said before /commandname gui { opens GuiSettings1 } (scroll up and see that).
Updated GuiSettings1:
GuiSettings2 updated
Here is how I run the thing at first using the command.(remember that GuiSettings1() is like the main screen of the gui and GuiSettings2() is a inside the 1st gui thing)
else if (args[0].equalsIgnoreCase("gui")) {
// used commandhandler player does /command gui and it does this.
Runnable rn = () -> Minecraft.getMinecraft().displayGuiScreen(new GuiSettings1());
service.schedule(rn, 50, TimeUnit.MILLISECONDS);
}
Tell me how do I fix it over here then. In other words you mean like I have to remove the Runnable which is causing threading running this gui? cause it crashes if i dont add that 1 tick/Runnable to it.

Set online mode to false and check if ports are forwarded https://www.yougetsignal.com/tools/open-ports/
Best way is forward them with router
Go to CMD > ipconfig > Gateway is the URL you need to write in browser
Login and forward 25565 external port to 25565 internal port
BTW, the ip is ip addr of your server

But if you want server for yourself only
Then just online mode set to no
and insert ip localhost