mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Additional constructor for PlayerLoginEvent
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
304ad67759
commit
d98a5eadfe
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ public class PlayerLoginEvent extends PlayerEvent {
|
||||||
private Result result;
|
private Result result;
|
||||||
private String message;
|
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) {
|
public PlayerLoginEvent(final Type type, final Player player, final Result result, final String message) {
|
||||||
super(type, player);
|
super(type, player);
|
||||||
this.result = result;
|
this.result = result;
|
||||||
|
|
Loading…
Reference in a new issue