Jump to content

zekro

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by zekro

  1. Hey! Currently, I am working on a mod which allows binding to Discord RPC to show current game State in Discord. This shall be a pure Client-Mod, so I can only rely on Client Side Events. Currently, I am subscribing to the more generic PlayerEvent which notifies on every player activity taking place on the server, as I get from the documentation. I discovered, that there is an event class called EntityJoinWorldEvent, which has the following description: EntityJoinWorldEvent is fired when an Entity joins the world. This event is fired whenever an Entity is added to the world in World.loadEntities(Collection), WorldServer.loadEntities(Collection) World.joinEntityInSurroundings(Entity), and World.spawnEntity(Entity). That approach would be more selective and straightforward as just hooking all player events, but I could not found any corresponding event for entities leaving/quitting the world, which leaves me again on just hooking all player events. Here you can see how the event hook is currently implemented. Is there any way to get notified when a player joins or leaves the server world without using server side events?
  2. Is there an easy way to get if an Entity / EntityLivingBase is friendly or agressive against players?
×
×
  • Create New...

Important Information

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