diff options
author | Patrick Seidel <psycowithespn1@aim.com> | 2013-03-21 16:48:06 -0400 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2014-04-02 18:04:05 -0500 |
commit | 609f137230ae4e07aa71ba676c66118454b6f55d (patch) | |
tree | cd3044d75cdfaf964d4b25581bc866b5bbe04d9a /src/main | |
parent | 9b978055c93e42742a70a3b32a47414cee63ca72 (diff) | |
download | bukkit-609f137230ae4e07aa71ba676c66118454b6f55d.tar bukkit-609f137230ae4e07aa71ba676c66118454b6f55d.tar.gz bukkit-609f137230ae4e07aa71ba676c66118454b6f55d.tar.lz bukkit-609f137230ae4e07aa71ba676c66118454b6f55d.tar.xz bukkit-609f137230ae4e07aa71ba676c66118454b6f55d.zip |
Add method to send fake sign updates to players. Adds BUKKIT-2300
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 44c9b5a7..fe8a0bd7 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -306,6 +306,23 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline public void sendBlockChange(Location loc, int material, byte data); /** + * Send a sign change. This fakes a sign change packet for a user at + * a certain location. This will not actually change the world in any way. + * This method will use a sign at the location's block or a faked sign + * sent via {@link #sendBlockChange(org.bukkit.Location, int, byte)} or + * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.Material, byte)}. + * <p> + * If the client does not have a sign at the given location it will + * display an error message to the user. + * + * @param loc the location of the sign + * @param lines the new text on the sign or null to clear it + * @throws IllegalArgumentException if location is null + * @throws IllegalArgumentException if lines is non-null and has a length less than 4 + */ + public void sendSignChange(Location loc, String[] lines) throws IllegalArgumentException; + + /** * Render a map and send it to the player in its entirety. This may be * used when streaming the map in the normal manner is not desirable. * |