Anti Spam is a behavior-pack addon that monitors player chat and automatically detects:
• Rapid messaging (too many messages in a short time) • Repeated identical messages • Repeated characters (e.g. aaaaaaa, !!!!!!!) • Blocked words (NG words)
When a violation is detected, the addon can mute or kick the player. Mute status and NG-word warning counts are saved to the world, so they persist across reconnects and world reloads.
All admin commands require Operator permission level 2 (same as /op). Cheats do not need to be enabled.
───
Installation
1. Place the "Anti Spam" folder in your behavior packs directory: .../development_behavior_packs/Anti Spam/
2. Open your world settings.
3. Go to Behavior Packs and activate "Anti Spam".
4. Re-enter the world (or restart it) so the scripts load.
Settings are stored inside the world using Dynamic Properties. They survive world saves and reloads.
───
Language Settings
The addon supports Japanese, English, and both (bilingual).
Commands: /spam:language ja → Japanese only /spam:language en → English only /spam:language both → Both languages (default)
Default: both Messages appear like: English text | 日本語テキスト
───
What Gets Detected
1. Rapid messaging
If a player sends more messages than allowed within the configured time window, it counts as spam.
Default: More than 3 messages within 3 seconds triggers punishment.
2. Same message spam
If a player sends the same message repeatedly in a row, it counts as spam.
Default: 3 identical messages in a row triggers punishment.
3. Repeated characters
If a single character is repeated too many times in one message, it counts as spam.
Default: 8 or more consecutive identical characters (e.g. hellooooo, !!!!!!!!).
4. NG words (blocked words)
Messages containing blocked words are cancelled immediately.
Note: Values must be 0 or greater. For exempt_operators, only 0 or 1 is accepted.
───
Admin tools
Unmute a player: /spam:unmute <playerName>
Reset NG warnings: /spam:resetwarnings <playerName>
Reload configuration: /spam:reload
View moderation logs: /spam:logs (Shows the 10 most recent events; up to 50 are stored in the world)
Logged events include: • NG warnings • NG kicks / mutes • Spam mutes / kicks • Manual unmutes • Warning resets
───
Default Settings Summary
Language: both (English + Japanese) Spam punishment: mute NG word punishment: kick Mute duration: 60 seconds Time window: 3 seconds Max messages per window: 3 Same message limit: 3 in a row Repeated character limit: 8 characters Max NG warnings: 3 Operator exemption: Enabled Exempt tag: spam_exempt Max log entries stored: 50
Muted players cannot send chat. They see: You are muted. Remaining: 45s
(or the Japanese / bilingual equivalent, depending on language setting)
Mute status persists if the player leaves and rejoins.
When an NG word is detected
The message is blocked. The player sees a warning: [Warning] Inappropriate language detected. (1/3)
When spam is detected
The message is blocked. Depending on settings:
Mute example: Muted for 60s due to spam (rapid messaging).
Kick: A server-wide notice is shown, and the player is kicked.
───
Troubleshooting
Problem: Commands not found Solution: Ensure the behavior pack is active and re-enter the world
Problem: Commands say permission denied Solution: You need Operator level 2 (/op <yourName> )
Problem: Settings seem unchanged Solution: Run /spam:reload, then /spam:status
Problem: OPs are being muted Solution: Run /spam:config exempt_operators 1
Problem: A player should be exempt Solution: Run /tag <player> add spam_exempt
Problem: Mute persists after it should end Solution: Run /spam:unmute <playerName>
Problem: False NG word matches Solution: Remove or adjust words with /spam:ngword remove <word>
───
Technical Notes
• Chat only: Commands and signs are not monitored. • Persistence: Config, player mutes/warnings, and logs are stored in world Dynamic Properties. • Session data: Message timing data is kept in memory and resets when a player leaves (mute/warnings do not). • Script API: Requires @minecraft/server (Beta APIs).
"No Sword, No Mercy. Just Shoot & Fly."Forget vanilla PvP. Experience the real physics knockback powered by Script API. Smash your friends into the void!
Welcome to One Block Wars, a thrilling PvP minigame map where survival meets strategy! Inspired by the classic One Block challenge and Bedwars mechanics.
Add a little daily joy and goals to your survival life! This add-on shines a spotlight on items you usually overlook, making your daily exploration much more enjoyable.
"No Sword, No Mercy. Just Shoot & Fly."Forget vanilla PvP. Experience the real physics knockback powered by Script API. Smash your friends into the void!
Welcome to One Block Wars, a thrilling PvP minigame map where survival meets strategy! Inspired by the classic One Block challenge and Bedwars mechanics.
Add a little daily joy and goals to your survival life! This add-on shines a spotlight on items you usually overlook, making your daily exploration much more enjoyable.