feature-remove-db #8

Merged
Pupsi merged 21 commits from feature-remove-db into main 2024-10-19 13:25:58 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit b8bcb5e580 - Show all commits

View File

@ -23,7 +23,7 @@ public class ExitWorldCommand implements CommandExecutor {
PixelBlock currentPixelBlock = PixelBlock.getPixelBlockFromBlockWorld(playerWorld);
Objects.requireNonNull(currentPixelBlock);
p.teleport(currentPixelBlock.getLastEntryLocation());
currentPixelBlock.exitBlock(p);
}
return true;
}

View File

@ -180,6 +180,7 @@ public class PixelBlock {
// }
public void destroy(Player destroyedBy) {
if(!this.exists) return;
if(Main.configuration.onlyBreakableByOwner() && !destroyedBy.getUniqueId().equals(ownerUUID)) {
destroyedBy.sendMessage("Dieser Pixelblock gehört nicht dir!");
return;