added listener to exit pixelblock when leaving the server
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user