added listener to exit pixelblock when leaving the server

This commit is contained in:
2024-10-04 21:02:48 +02:00
parent ab71f09f8a
commit 92a3edc0b6
15 changed files with 45 additions and 21 deletions

View File

@@ -102,6 +102,10 @@ public class PixelBlock {
.execute();
}
public void exitBlock(@NotNull Player player) {
player.teleport(this.lastEntryLocation);
}
public void setLastEntryLocation(Location lastEntryLocation) {
this.lastEntryLocation = lastEntryLocation;
}