Posted October 28, 201411 yr Hello, i need to show player gui on him first join. I tried to catch PlayerLoggedInEvent and if there is not flag, which show if player already have been playing on this server, show player gui using Minecraft.displayGuiScreen() method, but this method dose nothing, please help, all sources below. Classes: Class which catches PlayerLoggedInEvent, Class which performing action (display gui) , Gui class Please help!
October 28, 201411 yr You could use IExtendedEntityProperties to add a boolean to the player's NBT (defaulting to false). When the player logs in, if the boolean is false for that player, open the GUI and set it to true. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 28, 201411 yr Author It's not a problem, my method MethodManager.onFirstJoin() executing correct because i can see "MethodManager.onFirstJoin executed" message (I using it like debug message ), my problem is that it doesnt displays gui
October 28, 201411 yr Your method calling GUI has been removed. Care to refresh? Also have you registered GUI? 1.7.10 is no longer supported by forge, you are on your own.
October 29, 201411 yr Author I am using forge 10.12.2.1121. Can you provide some examples gui registering?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.