Skip to content

Commit 73aded4

Browse files
authored
Fix spigot config silentCommandBlocks filtering player commands (#13649)
1 parent 1241f40 commit 73aded4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

paper-server/patches/sources/net/minecraft/commands/CommandSourceStack.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
}
9494

9595
- if (this.source != this.server && gameRules.get(GameRules.LOG_ADMIN_COMMANDS)) {
96-
+ if (this.source != this.server && gameRules.get(GameRules.LOG_ADMIN_COMMANDS) && !org.spigotmc.SpigotConfig.silentCommandBlocks) { // Spigot
96+
+ if (this.source != this.server && gameRules.get(GameRules.LOG_ADMIN_COMMANDS) && (!org.spigotmc.SpigotConfig.silentCommandBlocks || !(this.source instanceof net.minecraft.world.level.BaseCommandBlock.CloseableCommandBlockSource))) { // Spigot // Paper - Fix spigot config silentCommandBlocks filtering player commands
9797
this.server.sendSystemMessage(broadcast);
9898
}
9999
}

0 commit comments

Comments
 (0)