xyzanish

Build plugin files for a Minecraft Spigot/ paper server . The first file is called ChatControl.sk and must include a full chat management system with the following features: a customizable chat format using %player%, %world%, and %message% placeholders with color code support; a caps filter that detects messages exceeding a configurable capital letter percentage and either lowercases, blocks, or warns the player; a spam and flood filter with a per-player cooldown in seconds, a VIP reduced cooldown via permission, and a repeated message detection system that tracks the last 5 messages per player; a word filter that checks messages against a configurable bad word list stored as Skript list variables and either replaces matched words with asterisks or blocks the message entirely; an advertisement and link filter that blocks raw IP addresses, blocked domain keywords, and Discord invite links while respecting a whitelist of allowed domains; a chat lock system that prevents all players without a bypass permission from sending messages; a chat clear command that broadcasts blank lines; a mute and unmute system that stores muted players by UUID in persistent variables, prevents muting staff, and broadcasts mute and unmute messages to the server; a chat spy mode that lets staff with the correct permission see all chat messages including filtered ones; an auto-capitalize feature that capitalizes the first letter of every message; a permission-gated color code feature; custom join and quit messages with first-join detection; and an auto-broadcast system driven by a per-second tick counter with a configurable interval, message list, and on/off toggle all controlled via in-game commands. All filter lists such as bad words, blocked domains, and whitelist domains must be initialized in an on load: event using Skript list variables so they persist and can be reloaded. The commands must be /chat with subcommands on, off, lock, unlock, clear, mute <player>, unmute <player>, spy, and broadcast with sub-subcommands on, off, list, clear, and interval; and /chatcontrol aliased as /cc with subcommands help, reload, info, badwords, and domains. All placeholder replacements must use replace "%x%" in {_var} with value syntax, all player name references must use name of player, all timespan math must use / 1 second for proper division, and the chat format must use %2$s as the message placeholder in set format of event. The second file is called Announcements.sk and must include a /announce command aliased as /ann supporting announcement types chat, actionbar, title, and bossbar, with smart target parsing that accepts all, a specific player name, world:<worldname>, or perm:<permission.node> for every type; quick shortcut subcommands all, player, world, and perm; title announcements using || to split title and subtitle; a bossbar fallback using a styled chat banner; a sound played to all recipients on every announcement; and a /autoannounce command aliased as /aa with subcommands on, off, add, remove, list, clear, interval, mode (order or random), type (chat, actionbar, or title), and status. The auto-announce timer must use every 1 second with a tick counter variable so the interval is dynamic and changes take effect immediately without a reload. All delivery logic must be extracted into helper functions named annSendChat, annSendActionbar, annSendTitle, annSendBossbar, annPlaySound, and annPlaySoundAll. Permissions required are chatcontrol.chat, chatcontrol.admin, chatcontrol.bypass.caps, chatcontrol.bypass.spam, chatcontrol.bypass.words, chatcontrol.bypass.ads, chatcontrol.bypass.rules, chatcontrol.bypass.lock, chatcontrol.vip.cooldown, chatcontrol.chat.spy, chatcontrol.notify, chatcontrol.color, chatcontrol.announce, and chatcontrol.announce.auto. Do not use function return lists, do not use options in timer headers, do not use {variable} has permission, do not use uuid of text, and do not use every {@option} seconds syntax anywhere.

xyzanish

Make this

xyzanish

Make it step by step

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code