From c2d9af58fec008b2651dd7564421f0c65e549b7f Mon Sep 17 00:00:00 2001
From: Dinnerbone <dinnerbone@dinnerbone.com>
Date: Fri, 28 Jan 2011 09:15:32 +0000
Subject: [PATCH] Implemented player.performCommand(String)

---
 src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index a1ed1165ed..2ceb8d9781 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -106,4 +106,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
         entity.a.b(((Packet) (new Packet6SpawnPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()))));
     }
 
+    public boolean performCommand(String command) {
+        return server.dispatchCommand(this, command);
+    }
 }