-
Notifications
You must be signed in to change notification settings - Fork 4
refactor(v3): cleanup, rename plugin, translations support #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Rushaway
wants to merge
5
commits into
master
Choose a base branch
from
v3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0a73621
refactor(v3): code cleanup, rename plugin
Rushaway 8a5b4c4
Create README.md for TriggerWatcher plugin
Rushaway 78ede70
Fix loop condition to include MaxClients
Rushaway 7dd1d7e
Enhance spam detection and cookie menu title
Rushaway 27cd883
remove un-used translation
Rushaway File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # TriggerWatcher | ||
|
|
||
| TriggerWatcher logs button and trigger activations to chat and/or console for admins and SourceTV. It is the successor to the old ButtonNotifier plugin (repository name: sm-plugin-ButtonNotifier). | ||
|
|
||
| ## Features | ||
| - Notify modes per client: None, Chat, Console, or Both. | ||
| - Clean, short chat messages with a [TW] prefix. | ||
| - Detailed console/server logs with user ID and entity info. | ||
| - Spam throttling for rapid button presses. | ||
| - Optional EntWatch integration to ignore special items. | ||
|
|
||
| ## Installation | ||
| 1) Compile (or download latest release) and install the plugin. | ||
| 2) Place translations in the SourceMod translations folder. | ||
|
|
||
| Files: | ||
| - Plugin: addons/sourcemod/plugins/TriggerWatcher.smx | ||
| - Translations: addons/sourcemod/translations/TriggerWatcher.phrases.txt | ||
|
|
||
| ## Configuration | ||
| Cvars: | ||
| - sm_TriggerWatcher_block_spam_delay (default 5) | ||
| - Spam notification delay in seconds. Set to 0 to disable spam blocking. | ||
|
|
||
| ## User Settings | ||
| Players can open the cookie menu entry "TriggerWatcher Settings" to select per-category display mode: | ||
| - Buttons | ||
| - Triggers | ||
|
|
||
| > [!IMPORTANT] | ||
| > Upgrade Guide: v2 -> v3 | ||
| ### This release is a rename and cleanup of the legacy ButtonNotifier plugin. | ||
|
|
||
| Key changes: | ||
| - Plugin renamed: ButtonNotifier -> TriggerWatcher | ||
| - Repository renamed: sm-plugin-ButtonNotifier -> sm-plugin-TriggerWatcher | ||
| - Cookie key renamed: TriggerWatcher_display | ||
| - Cvar change: removed sm_TriggerWatcher_block_spam (delay now controls spam blocking) | ||
|
|
||
| Recommended upgrade steps: | ||
| 1) Replace the old .smx with TriggerWatcher.smx | ||
| 2) Install new translations with TriggerWatcher.phrases.txt | ||
| 3) Remove old configs/cookies if you want a clean slate | ||
|
|
||
| ## Notes | ||
| - Console logging uses detailed output including user ID and entity info. | ||
| - Chat logging is intentionally short to avoid spam. |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.