From d98a5eadfe7b45a3bcb2ad02022c24be7a515d7a Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 28 Dec 2010 22:54:39 +0000 Subject: [PATCH] Additional constructor for PlayerLoginEvent By: Dinnerbone --- paper-api/src/org/bukkit/event/player/PlayerLoginEvent.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paper-api/src/org/bukkit/event/player/PlayerLoginEvent.java b/paper-api/src/org/bukkit/event/player/PlayerLoginEvent.java index 65a989f589..e19475a94e 100644 --- a/paper-api/src/org/bukkit/event/player/PlayerLoginEvent.java +++ b/paper-api/src/org/bukkit/event/player/PlayerLoginEvent.java @@ -10,6 +10,12 @@ public class PlayerLoginEvent extends PlayerEvent { private Result result; private String message; + public PlayerLoginEvent(final Type type, final Player player) { + super(type, player); + this.result = Result.ALLOWED; + this.message = ""; + } + public PlayerLoginEvent(final Type type, final Player player, final Result result, final String message) { super(type, player); this.result = result;