Jump to content

Recommended Posts

Posted

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! :)

Posted

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!

Posted

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

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.