From 131a2c769bd9de2db4f8c10696e6f12c477a6f50 Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 10 Mar 2011 00:02:15 +0000 Subject: [PATCH] Slight tweak to EntityPlayer to add toString for name+position for error tracking --- src/main/java/net/minecraft/server/EntityPlayer.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index cef0981eb4..db9b954008 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -334,4 +334,11 @@ public class EntityPlayer extends EntityHuman implements ICrafting { this.pitch = f2; this.yaw = f3; } + + // Craftbukkit start + @Override + public String toString() { + return super.toString() + "(" + name + " at " + locX + "," + locY + "," + locZ + ")"; + } + // Craftbukkit end }