Jump to content

Get's nickname of a player


sayonara2312

Recommended Posts

Wheter "using the command" means actually using a command like /something or it means the players does some sort of action (like attacking an entity), you should have an event handler for these events and in that i'm pretty sure you'll find a reference to the player, wich then will give you access to all players informations, like the name in this case.  You can find more about how to intercept an event here on the official Forge documentation. Note that this will give you the basics, for more advanced things you have to figure out by your own ;)

Don't blame me if i always ask for your help. I just want to learn to be better :)

Link to comment
Share on other sites

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.