Skip to content

Commit 288d805

Browse files
committed
Fix commands not being blocked properly
1 parent 76df3d5 commit 288d805

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/jadedmc/commandblockerpro/listeners/PlayerCommandPreprocessListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void onCommandSend(PlayerCommandPreprocessEvent event) {
6565
plugin.getServer().getPluginManager().callEvent(commandBlockEvent);
6666

6767
// If the CommandBlockEvent is cancelled, allow the command to be processed.
68-
if(!commandBlockEvent.isCancelled()) {
68+
if(commandBlockEvent.isCancelled()) {
6969
return;
7070
}
7171

0 commit comments

Comments
 (0)