Jump to content

Condo2k4

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Condo2k4's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I didn't realise the nbt tags could be customised, though it does make sense. That is actually a lot simpler. Well back to the drawing board. Thanks.
  2. Hi Guys, I'm new to creating minecraft mods with Forge and to these forums. I've been working on a mod and needed a way to know when the player is joining the server and if this was their first time on the server. I couldn't find a way to do this with the FML player joining hooks, so I wrote my own events. Should I put the code up here or is their some formal method I missed? Description Adds three event classes (PlayerJoinEvent with is extended by PlayerJoiningEvent and PlayerJoinedEvent) and modifies the NetLoginHandler to fire PlayerJoiningEvent and PlayerJoinedEvent events. The PlayerJoiningEvent occurs just before the player connects and gain their entity. It is cancelable allowing mods to deny particular players if they so choose before they fully connect to the server. The PlayerJoiningEvent fires after they join once they have their associated EntityPlayer (which you can access). As mentioned earlier, both have a boolean flag that it true if they are returning and false if this is their first time on the server.
×
×
  • Create New...

Important Information

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