Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Condo2k4

Members
  • Joined

  • Last visited

Everything posted by Condo2k4

  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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.