diff --git a/src/main/java/net/minestom/server/event/trait/PlayerEvent.java b/src/main/java/net/minestom/server/event/trait/PlayerEvent.java index efb03c6bc..2fb8834fd 100644 --- a/src/main/java/net/minestom/server/event/trait/PlayerEvent.java +++ b/src/main/java/net/minestom/server/event/trait/PlayerEvent.java @@ -1,10 +1,9 @@ package net.minestom.server.event.trait; import net.minestom.server.entity.Player; -import net.minestom.server.event.Event; import org.jetbrains.annotations.NotNull; -public interface PlayerEvent extends Event { +public interface PlayerEvent extends EntityEvent { /** * Gets the player. @@ -12,4 +11,12 @@ public interface PlayerEvent extends Event { * @return the player */ @NotNull Player getPlayer(); + + /** + * Returns {@link #getPlayer()}. + */ + @Override + default @NotNull Player getEntity() { + return getPlayer(); + } }