Open
Conversation
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.
Member
|
Please find a way to do this without copy/paste for the message |
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.
Member
Author
|
Fixed listed issues. Screenshot still apply so no new ones needed. Please |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added Source of action/what staff member an action came from.
Enabled

Disabled
