91a4290f50
CommandSourceStack.broadcastToAdmins: on a dedicated server, a guest's command success (sendSuccess with broadcast) is logged on the console as "[Name: message]" when log_admin_commands is on, and sent gray and italic to every other operator when send_command_feedback is on. The queries and lists vanilla sends with broadcast false (commands/admin.rs) stay with the player who asked. Lines are queued while the guest acts and sent once the command returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93 lines
3.6 KiB
Rust
93 lines
3.6 KiB
Rust
//! Which command feedback vanilla tells the other operators and the console
|
|
//! about (`CommandSourceStack.sendSuccess`'s `broadcast`).
|
|
|
|
/// The replies vanilla sends with `broadcast` false: queries and lists, which
|
|
/// only the player who asked sees. Every other success message is broadcast.
|
|
pub(super) const QUIET: &[&str] = &[
|
|
"commands.attribute.base_value.get.success",
|
|
"commands.attribute.base_value.reset.success",
|
|
"commands.attribute.base_value.set.success",
|
|
"commands.attribute.modifier.add.success",
|
|
"commands.attribute.modifier.remove.success",
|
|
"commands.attribute.modifier.value.get.success",
|
|
"commands.attribute.value.get.success",
|
|
"commands.banlist.entry",
|
|
"commands.banlist.list",
|
|
"commands.banlist.none",
|
|
"commands.bossbar.list.bars.none",
|
|
"commands.bossbar.list.bars.some",
|
|
"commands.data.block.get",
|
|
"commands.data.block.query",
|
|
"commands.data.entity.get",
|
|
"commands.data.entity.query",
|
|
"commands.data.storage.get",
|
|
"commands.data.storage.query",
|
|
"commands.datapack.list.available.none",
|
|
"commands.datapack.list.available.success",
|
|
"commands.datapack.list.enabled.none",
|
|
"commands.datapack.list.enabled.success",
|
|
"commands.difficulty.query",
|
|
"commands.execute.conditional.pass",
|
|
"commands.execute.conditional.pass_count",
|
|
"commands.experience.query.levels",
|
|
"commands.experience.query.points",
|
|
"commands.fetchprofile.copy_component",
|
|
"commands.fetchprofile.copy_text",
|
|
"commands.fetchprofile.give_item",
|
|
"commands.fetchprofile.summon_mannequin",
|
|
"commands.forceload.list.multiple",
|
|
"commands.forceload.list.single",
|
|
"commands.forceload.query.success",
|
|
"commands.gamerule.query",
|
|
"commands.jfr.started",
|
|
"commands.jfr.stopped",
|
|
"commands.list.players",
|
|
"commands.locate.biome.success",
|
|
"commands.locate.poi.success",
|
|
"commands.locate.structure.success",
|
|
"commands.perf.started",
|
|
"commands.perf.stopped",
|
|
"commands.posteffect.list.empty",
|
|
"commands.posteffect.list.success",
|
|
"commands.random.reset.all.success",
|
|
"commands.random.reset.success",
|
|
"commands.random.sample.success",
|
|
"commands.save.saving",
|
|
"commands.scoreboard.objectives.list.empty",
|
|
"commands.scoreboard.objectives.list.success",
|
|
"commands.scoreboard.players.get.success",
|
|
"commands.scoreboard.players.list.empty",
|
|
"commands.scoreboard.players.list.entity.empty",
|
|
"commands.scoreboard.players.list.entity.entry",
|
|
"commands.scoreboard.players.list.entity.success",
|
|
"commands.scoreboard.players.list.success",
|
|
"commands.seed.success",
|
|
"commands.spectate.success.started",
|
|
"commands.spectate.success.stopped",
|
|
"commands.team.list.members.empty",
|
|
"commands.team.list.members.success",
|
|
"commands.team.list.teams.empty",
|
|
"commands.team.list.teams.success",
|
|
"commands.team.option.prefix.success",
|
|
"commands.team.option.suffix.success",
|
|
"commands.tick.query.percentiles",
|
|
"commands.tick.query.rate.running",
|
|
"commands.tick.query.rate.sprinting",
|
|
"commands.tick.status.frozen",
|
|
"commands.tick.status.lagging",
|
|
"commands.tick.status.running",
|
|
"commands.tick.status.sprinting",
|
|
"commands.time.query.absolute",
|
|
"commands.time.query.gametime",
|
|
"commands.time.query.timeline",
|
|
"commands.time.query.timeline.repetitions",
|
|
"commands.waypoint.list.empty",
|
|
"commands.waypoint.list.success",
|
|
"commands.waypoint.modify.color",
|
|
"commands.waypoint.modify.color.reset",
|
|
"commands.waypoint.modify.style",
|
|
"commands.whitelist.list",
|
|
"commands.whitelist.none",
|
|
"commands.worldborder.get",
|
|
];
|