adding automatic world restoration

This commit is contained in:
2023-04-17 16:43:29 +02:00
parent 49ea2b1aad
commit 9b2884b85d
4 changed files with 41 additions and 14 deletions

View File

@@ -0,0 +1,11 @@
package eu.mhsl.craftattack.worldmuseum.listener;
import net.minestom.server.event.player.PlayerBlockPlaceEvent;
import java.util.function.Consumer;
public class BlockPlaceListener implements Consumer<PlayerBlockPlaceEvent> {
@Override
public void accept(PlayerBlockPlaceEvent playerBlockPlaceEvent) {
playerBlockPlaceEvent.setCancelled(true);
}
}