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.

Featured Replies

Posted

Hey guys,

 

I'm looking to see if it's at all possible to create a forge-based mod that is only required to be installed on the server (I.E not installed on the client.)

 

I have got one working, so that's not really my main question, unless there's something I should know.

 

My main question is how do I identify the username of a player logging in via the serverside. I've been trying to implement IConnectionHandler into a custom class, but trying to pull the username field from EntityPlayer crashes the server, saying there is no such field.

 

  • Author

But I'm trying to get a player without them sending a command, i need to initalize them on login..

  • Author

I'm trying to make a mod that keeps track of individual players (loosely). It also gives them a name prefix and a restriction set based on a group they're previously assigned..

 

This means that even for their first logon, they should be assigned a prefix and a group, as soon as they log in..

 

I've already made a plugin for bukkit (not published), and now I'm trying to make it for forge aswell

 

 

So what I'm trying to ask is how to get the instance of the a player as they join the server, only from the server side

  • Author

PlayerEvent only seems to have HarvestCheck and BreakSpeed fields though

 

I should probably mention that of course I'm trying to make it in 1.5.2 (for compatibility with modpacks)

 

Sorry to be a pain

Guest
This topic is now closed to further replies.

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.