Improves and fixes comments for listeners
Removes the enableBungee check in the BungeeCordListener as it should only be listening if the option is enabled anyway Improves the checking for players teleporting from the end
This commit is contained in:
@ -44,4 +44,17 @@ public class FromTheEndTeleportation {
|
||||
return this.exitPortal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return teleportingPlayer.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
if (!(other instanceof FromTheEndTeleportation otherTeleportation)) {
|
||||
return false;
|
||||
}
|
||||
return teleportingPlayer.equals(otherTeleportation.teleportingPlayer);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user