We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c3bfb5 commit c1c1449Copy full SHA for c1c1449
src/main/java/com/github/elic0de/thejpspit/listener/BlockPlaceListener.java
@@ -30,6 +30,9 @@ public void on(BlockPlaceEvent event) {
30
if (player.getGameMode() == GameMode.CREATIVE) return;
31
final BlockState replacedState = event.getBlockReplacedState();
32
33
+ // クリエイティブ以外は壊せないように
34
+ event.setCancelled(true);
35
+
36
if (replacedStates.containsKey(replacedState.getLocation())) return;
37
replacedStates.put(replacedState.getLocation(), replacedState);
38
0 commit comments