From 66761d2d4ddd7be5a57db96c0ba386e4cca048f9 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 12 Feb 2011 00:39:37 -0800 Subject: [PATCH] Added getPlayer method to SignChangeEvent By: Timberjaw --- .../java/org/bukkit/event/block/SignChangeEvent.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java index 89fec6256..e8d066ac4 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/SignChangeEvent.java @@ -18,13 +18,21 @@ public class SignChangeEvent extends BlockEvent implements Cancellable { this.lines = theLines; } + /** + * Gets the player for this event + * + * @return Player player + */ + public Player getPlayer() { + return player; + } + /** * Gets all of the text lines from this event * * @return String[] of the event's text lines */ - public String[] getLines() - { + public String[] getLines() { return lines; }