From 991af11e0b3cc0e0feb463a0b5834882c7b0de5a Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 28 Jan 2011 09:15:32 +0000 Subject: [PATCH] Implemented player.performCommand(String) By: Dinnerbone --- .../main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index a1ed1165ed..2ceb8d9781 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/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); + } }