Skip to content

Added Source of Action#4

Open
Grumboculus wants to merge 9 commits intoStaffWatch:mainfrom
Grumboculus:dev
Open

Added Source of Action#4
Grumboculus wants to merge 9 commits intoStaffWatch:mainfrom
Grumboculus:dev

Conversation

@Grumboculus
Copy link
Copy Markdown
Member

Added Source of action/what staff member an action came from.

Enabled
image

Disabled
image

Grumboculus and others added 8 commits January 7, 2026 20:04
Introduces the BROADCAST_ACTIONS_TO_SERVER config option to control whether moderation actions (warnings, kicks, bans, commendations) are broadcast to all players in chat. Implements SendGlobalMessage utility and updates command handlers to use it when broadcasting actions.
Updated SendGlobalMessage to send messages to each player using SendChatMessage instead of a single TriggerEvent. Also improved broadcast messages in commands.lua to display player names instead of IDs for better clarity.
Replaced SendGlobalMessage with SendChatMessage for broadcasting actions in commands.lua and removed SendGlobalMessage from util.lua. Cleaned up command handling by removing redundant player messages and added server-only execution checks for freeze, unfreeze, and announce commands.
I deleted stuff on accident and had to return it to normal everything works though.
Removed unnecessary spaces in SendChatMessage calls for better formatting. Added direct feedback to players for commend and warn commands when actions are not broadcast to the server.
Introduced the SHOW_SOURCE_OF_ACTION config option to display the staff member responsible for a ban in the ban message shown to players. Updated playerJoin.lua to conditionally include the staff username in the ban message based on this setting.
@AidenTheTechBoy
Copy link
Copy Markdown
Member

Please find a way to do this without copy/paste for the message
Additionally provide better name/desc for configuration property

Made the ban message a table and converts when needed. If client has show staff action who banned it will show staff who banned player above the rule in message.
@Grumboculus
Copy link
Copy Markdown
Member Author

Fixed listed issues. Screenshot still apply so no new ones needed. Please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants