/** * Sets the new result of the login, as an enum * * @param result New result to set * @deprecated This method uses a deprecated enum from {@link * PlayerPreLoginEvent} * @see #setLoginResult(Result) */ @Deprecated public void setResult(final PlayerPreLoginEvent.Result result) { this.result = result == null ? null : Result.valueOf(result.name()); }
/** * Disallows the player from logging in, with the given reason * * @param result New result for disallowing the player * @param message Kick message to display to the user * @deprecated This method uses a deprecated enum from {@link * PlayerPreLoginEvent} * @see #disallow(Result, String) */ @Deprecated public void disallow(final PlayerPreLoginEvent.Result result, final String message) { this.result = result == null ? null : Result.valueOf(result.name()); this.message = message; }
/** * Sets the new result of the login, as an enum * * @param result New result to set * @deprecated This method uses a deprecated enum from {@link * PlayerPreLoginEvent} * @see #setLoginResult(Result) */ @Deprecated public void setResult(final PlayerPreLoginEvent.Result result) { this.result = result == null ? null : Result.valueOf(result.name()); }
/** * Disallows the player from logging in, with the given reason * * @param result New result for disallowing the player * @param message Kick message to display to the user * @deprecated This method uses a deprecated enum from {@link * PlayerPreLoginEvent} * @see #disallow(Result, String) */ @Deprecated public void disallow(final PlayerPreLoginEvent.Result result, final String message) { this.result = result == null ? null : Result.valueOf(result.name()); this.message = message; }