mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 23:22:10 -07:00
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
public Vec3 getPosition() {
|
public Vec3 getPosition() {
|
||||||
return this.worldPosition;
|
return this.worldPosition;
|
||||||
@@ -302,7 +318,7 @@
|
@@ -302,13 +318,13 @@
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
ServerPlayer entityplayer = (ServerPlayer) iterator.next();
|
ServerPlayer entityplayer = (ServerPlayer) iterator.next();
|
||||||
|
|
||||||
@@ -48,6 +48,13 @@
|
|||||||
entityplayer.sendSystemMessage(ichatmutablecomponent);
|
entityplayer.sendSystemMessage(ichatmutablecomponent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (this.source != this.server && this.server.getGameRules().getBoolean(GameRules.RULE_LOGADMINCOMMANDS)) {
|
||||||
|
+ if (this.source != this.server && this.server.getGameRules().getBoolean(GameRules.RULE_LOGADMINCOMMANDS) && !org.spigotmc.SpigotConfig.silentCommandBlocks) { // Spigot
|
||||||
|
this.server.sendSystemMessage(ichatmutablecomponent);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -400,4 +416,10 @@
|
@@ -400,4 +416,10 @@
|
||||||
public boolean isSilent() {
|
public boolean isSilent() {
|
||||||
return this.silent;
|
return this.silent;
|
||||||
|
@@ -294,4 +294,10 @@ public class SpigotConfig
|
|||||||
"/skill"
|
"/skill"
|
||||||
} ) );
|
} ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static boolean silentCommandBlocks;
|
||||||
|
private static void silentCommandBlocks()
|
||||||
|
{
|
||||||
|
SpigotConfig.silentCommandBlocks = SpigotConfig.getBoolean( "commands.silent-commandblock-console", false );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user