@@ -112,7 +112,9 @@ public class EntityShootBowEvent extends EntityEvent implements Cancellable {
|
||||
* consumed).
|
||||
*
|
||||
* @param consumeItem whether or not to consume the item
|
||||
* @deprecated not currently functional
|
||||
*/
|
||||
@Deprecated
|
||||
public void setConsumeItem(boolean consumeItem) {
|
||||
this.consumeItem = consumeItem;
|
||||
}
|
||||
|
||||
@@ -18,19 +18,26 @@ public class AsyncPlayerPreLoginEvent extends Event {
|
||||
private final String name;
|
||||
private final InetAddress ipAddress;
|
||||
private final UUID uniqueId;
|
||||
private final boolean transferred;
|
||||
|
||||
@Deprecated
|
||||
public AsyncPlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress) {
|
||||
this(name, ipAddress, null);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public AsyncPlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress, @NotNull final UUID uniqueId) {
|
||||
this(name, ipAddress, uniqueId, false);
|
||||
}
|
||||
|
||||
public AsyncPlayerPreLoginEvent(@NotNull final String name, @NotNull final InetAddress ipAddress, @NotNull final UUID uniqueId, boolean transferred) {
|
||||
super(true);
|
||||
this.result = Result.ALLOWED;
|
||||
this.message = "";
|
||||
this.name = name;
|
||||
this.ipAddress = ipAddress;
|
||||
this.uniqueId = uniqueId;
|
||||
this.transferred = transferred;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -163,6 +170,15 @@ public class AsyncPlayerPreLoginEvent extends Event {
|
||||
return uniqueId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets if this connection has been transferred from another server.
|
||||
*
|
||||
* @return true if the connection has been transferred
|
||||
*/
|
||||
public boolean isTransferred() {
|
||||
return transferred;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public HandlerList getHandlers() {
|
||||
|
||||
Reference in New Issue
Block a user