adding automatic world restoration
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user