Introduce isLogin() for backwards compatibility with Plugins like

GuiRules (Fixes #705)
This commit is contained in:
games647 2016-05-14 14:40:35 +02:00
parent c2c60caa5b
commit 0fc7674aa4

View File

@ -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}.
*