1
0
mirror of https://e.coding.net/circlecloud/AuthMe.git synced 2025-11-26 21:46:23 +00:00

init project...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-10-12 15:26:15 +08:00
commit a1176afa15
165 changed files with 19619 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
package fr.xephi.authme.events;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
/**
*
* This event is called when a player login or register through AuthMe. The
* boolean 'isLogin' will be false if, and only if, login/register failed.
*
* @author Xephi59
*/
public class LoginEvent extends Event {
private static final HandlerList handlers = new HandlerList();
private boolean isLogin;
private Player player;
public LoginEvent(Player player, boolean isLogin) {
this.player = player;
this.isLogin = isLogin;
}
public static HandlerList getHandlerList() {
return handlers;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public Player getPlayer() {
return this.player;
}
public boolean isLogin() {
return isLogin;
}
@Deprecated
public void setLogin(boolean isLogin) {
this.isLogin = isLogin;
}
public void setPlayer(Player player) {
this.player = player;
}
}