RedEnergy Posted October 28, 2014 Share Posted October 28, 2014 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! Quote Link to comment Share on other sites More sharing options...
Eternaldoom Posted October 28, 2014 Share Posted October 28, 2014 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. Quote Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button! Link to comment Share on other sites More sharing options...
RedEnergy Posted October 28, 2014 Author Share Posted October 28, 2014 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 Quote Link to comment Share on other sites More sharing options...
Ernio Posted October 28, 2014 Share Posted October 28, 2014 Your method calling GUI has been removed. Care to refresh? Also have you registered GUI? Quote 1.7.10 is no longer supported by forge, you are on your own. Link to comment Share on other sites More sharing options...
RedEnergy Posted October 29, 2014 Author Share Posted October 29, 2014 I am using forge 10.12.2.1121. Can you provide some examples gui registering? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.