-
[Question] 1.8.9. How to check if player is on server or signleplayer!
I wanna check if a player is in a specific server! (ip) And if hes not in signleplayer! But none of my methods to check if hes in signleplayer or server works! Any help?
-
[Question] 1.8.9. How to check if player is on server or signleplayer!
Im trying to check the if a player is in signleplayer! And also if player is on a server! But how do I check that with a good method! (some methods gives errors)
-
Question! How do I register a click event on custom main menu buttons!
@Draco18s I solved the problem! I figured out that I can make my own GuiMenu! I Forgot that that guiscreen is equal with mine so why 2 xD! Thanks you for your time!
-
Question! How do I register a click event on custom main menu buttons!
@Draco18s How do you execualy replace the existing guiScreen from MainMenuGUI! Do I need to create an instance of the MainMenuGUI and edit the guiScreen though the instance>?
-
Question! How do I register a click event on custom main menu buttons!
@Draco18s Thanks for your tip! But there is a litle problem If you use initGui it makes their own GUI screen! But how do you exualy display the InitGui while having mainGUI on your screen?
-
Question! How do I register a click event on custom main menu buttons!
Im changing the main menu by adding 1 custom button but I cannot connect that button with the click event! Im trying to add a result by clicking! Any help? My init class: public class MainMenuGUI extends GuiMainMenu { private GuiScreenEvent.InitGuiEvent event; public static GuiButtonExt mod_button; public MainMenuGUI(GuiScreenEvent.InitGuiEvent e) { event = e; run(); } private void run() { mod_button = new GuiButtonExt(12, Minecraft.getMinecraft().currentScreen.width / 2 - 100, Minecraft.getMinecraft().currentScreen.height / 2 -55, 200, 20, "Hypixel Party Helper"); if(event.buttonList.size() != 0) { // 0 IS SINGLEPLAYER // 1 IS MULTIPLAYER event.buttonList.get(0).yPosition = 150; event.buttonList.get(1).yPosition = 175; event.buttonList.add(mod_button); } } } But Im trying to add a event to that button but how do I do that?
IPS spam blocked by CleanTalk.