From 827ed5aa40a6c91684cbf3d2cdb92477d6e9b71a Mon Sep 17 00:00:00 2001
From: CraftBukkit/Spigot <noreply+git-craftbukkit@papermc.io>
Date: Thu, 30 Dec 2010 04:39:28 +0000
Subject: [PATCH] Don't override getName in CraftPlayer

By: Dinnerbone <dinnerbone@dinnerbone.com>
---
 .../src/org/bukkit/craftbukkit/CraftPlayer.java        | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java b/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java
index d69fd3b272..c6d95a6978 100644
--- a/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java
+++ b/paper-server/src/org/bukkit/craftbukkit/CraftPlayer.java
@@ -6,20 +6,14 @@ import org.bukkit.Player;
 
 public class CraftPlayer extends CraftHumanEntity implements Player {
     private final EntityPlayerMP entity;
-    private final String name;
 
     public CraftPlayer(CraftServer server, EntityPlayerMP entity) {
         super(server, entity);
         this.entity = entity;
-        name = entity.aw;
-    }
-
-    public String getName() {
-        return name;
     }
 
     public boolean isOnline() {
-        return server.getHandle().g(name);
+        return server.getHandle().g(getName());
     }
 
     @Override
@@ -29,6 +23,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
 
     @Override
     public String toString() {
-        return "CraftPlayer{" + "name=" + name + '}';
+        return "CraftPlayer{" + "name=" + getName() + '}';
     }
 }