From 0fc7674aa44b5b333e2059cf2cff2fd875d3a3a5 Mon Sep 17 00:00:00 2001 From: games647 Date: Sat, 14 May 2016 14:40:35 +0200 Subject: [PATCH] Introduce isLogin() for backwards compatibility with Plugins like GuiRules (Fixes #705) --- src/main/java/fr/xephi/authme/events/LoginEvent.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/fr/xephi/authme/events/LoginEvent.java b/src/main/java/fr/xephi/authme/events/LoginEvent.java index 6c2647fd8..d36dcc1a5 100644 --- a/src/main/java/fr/xephi/authme/events/LoginEvent.java +++ b/src/main/java/fr/xephi/authme/events/LoginEvent.java @@ -30,6 +30,16 @@ public class LoginEvent extends CustomEvent { return player; } + /** + * + * @return + * @deprecated this will always return true because this event is only called if it was successful + */ + @Deprecated + public boolean isLogin() { + return true; + } + /** * Return the list of handlers, equivalent to {@link #getHandlers()} and required by {@link Event}. *