diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-28 09:15:43 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-28 09:15:43 +0000 |
commit | fb5ab3b5d60bfa607e3a5fb1bbcb45cddb14c169 (patch) | |
tree | f851576150152c535eebe211d6b3421020257609 /src | |
parent | 54059e34bbba4c35206952f9afb584bf9498e50a (diff) | |
download | bukkit-fb5ab3b5d60bfa607e3a5fb1bbcb45cddb14c169.tar bukkit-fb5ab3b5d60bfa607e3a5fb1bbcb45cddb14c169.tar.gz bukkit-fb5ab3b5d60bfa607e3a5fb1bbcb45cddb14c169.tar.lz bukkit-fb5ab3b5d60bfa607e3a5fb1bbcb45cddb14c169.tar.xz bukkit-fb5ab3b5d60bfa607e3a5fb1bbcb45cddb14c169.zip |
Added player.performCommand(String)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 3baaa0d6..d917b55f 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -69,4 +69,12 @@ public interface Player extends HumanEntity { * @return */ public void kickPlayer(String message); + + /** + * Makes the player perform the given command + * + * @param command Command to perform + * @return true if the command was successful, otherwise false + */ + public boolean performCommand(String command); } |