I've trouble with sending a packet from server side to client side.
When I use a method in my ExtendedPlayer to see which level the player is Client side shows 0 and server side shows 2 (Changed level)
I've trouble with sending a packet from server side to client side
It's my first time with packet sending
Have you searched for a tutorial? I believe diesieben07 has one on this forum.
Yeah I've searched some tutorials: CoolAlias's one but I find it still complex because it's my first time with the packethandler and sending packets
I've searched through google and read that this is a problem.
I tried to make a new potioneffect class that extends PotionEffect, but that doesn't work.
Is there a way to avoid this?
I know what static means, I use static so I can call it back when I'm in an another class here an example:
https://github.com/NeoSup2130/Neo/blob/master/PlayerTransformed
Thanks Ernio
But there's still one problem: Whenever I create a new world the stuff is saved from the previous world.
I fixed it with an event which removes the levels when the world is created, but is there a better way to do it?
I've three integers with different names. When the player does something one of them goes up and gives the player buffs and debuffs.
But whenever I shutdown minecraft complety it doesn't save the integers and I know for a fact that you can use NBT to save them but I don't know how.
Use the event: PlayerLoggedInEvent
Whenever the player joins the world for the first time this event gets called.
And this event is a FMLCommonHandler event