feature-remove-db #8
@ -23,7 +23,7 @@ public class ExitWorldCommand implements CommandExecutor {
|
|||||||
|
|
||||||
PixelBlock currentPixelBlock = PixelBlock.getPixelBlockFromBlockWorld(playerWorld);
|
PixelBlock currentPixelBlock = PixelBlock.getPixelBlockFromBlockWorld(playerWorld);
|
||||||
Objects.requireNonNull(currentPixelBlock);
|
Objects.requireNonNull(currentPixelBlock);
|
||||||
p.teleport(currentPixelBlock.getLastEntryLocation());
|
currentPixelBlock.exitBlock(p);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -180,6 +180,7 @@ public class PixelBlock {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
public void destroy(Player destroyedBy) {
|
public void destroy(Player destroyedBy) {
|
||||||
|
if(!this.exists) return;
|
||||||
if(Main.configuration.onlyBreakableByOwner() && !destroyedBy.getUniqueId().equals(ownerUUID)) {
|
if(Main.configuration.onlyBreakableByOwner() && !destroyedBy.getUniqueId().equals(ownerUUID)) {
|
||||||
destroyedBy.sendMessage("Dieser Pixelblock gehört nicht dir!");
|
destroyedBy.sendMessage("Dieser Pixelblock gehört nicht dir!");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user