Hello Forge! I am in need of a mechanism to get a player's X Y and Z coordinates, I have tried two different ways:
- entityPlayer.getPosition(0).xCoord; // I don't know what the parameter in getPosition is for
- entityPlayer.posX
Both cause NoSuchMethod errors during runtime. So, my question is how do I get a player's location?
Thanks in advance for any answers!
Hello Forge! I am working on a mod to allow plugins to have Bukkit like functionality, and I need to detect when a player places a block in order to pass that information on to plugins. But, unlike the BreakEvent there is no PlaceEvent. I have googled extensively, but all I can find is the IPlayerTracker which had a method for this, but unfortunately that class is gone in 1.7 (the version I'm modding). Is there any way that I can detect when a player places a block?
2 replies
Important Information
By using this site, you agree to our Terms of Use.