diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/event/Event.java | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/main/java/org/bukkit/event/Event.java b/src/main/java/org/bukkit/event/Event.java index 8b91f922..e2fa3023 100644 --- a/src/main/java/org/bukkit/event/Event.java +++ b/src/main/java/org/bukkit/event/Event.java @@ -7,24 +7,15 @@ import java.io.Serializable; */ @SuppressWarnings("serial") public abstract class Event implements Serializable { - private final String name; - - protected Event() { - this(null); - } - - protected Event(final String name) { - if (name == null) { - this.name = getClass().getName(); - } else { - this.name = name; - } - } + private String name; /** * @return Name of this event */ - public final String getEventName() { + public String getEventName() { + if (name == null) { + name = getClass().getSimpleName(); + } return name; } |