Jump to content

[1.4.7] EntityJoinWorldEvent Client/Server


IndigoStarfish

Recommended Posts

I'm just experiment with my first mod here, and ran into something that is confusing me.

 

I made a mode with the following code, installed both client and server side.

 

@ForgeSubscribe
public void OnEntityJoinWorld(EntityJoinWorldEvent event) {
if (!(event.entity instanceof EntityPlayer)) {
	return;
}

EntityPlayer player = (EntityPlayer) event.entity;
System.out.println(String.format("%s joined dimension %d, isRemote:%b", player.getEntityName(), player.dimension, event.world.isRemote));

}

 

In single player, or in the client side when on a server, the following is printed out in the log.

2013-04-05 18:10:56 [iNFO] [sTDOUT] IndigoStarfish joined dimension 8, isRemote: true

 

However there is no corresponding message on the server side.

 

Am I missing something here?

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.