summaryrefslogtreecommitdiff
path: root/platform-paper/src/main/resources
AgeCommit message (Collapse)Author
2026-08-05refactor: read config.yml into the config classes directlySho Sakuma
Every setting's default was written three times - in config.yml, in the ConfigManager getter call, and on the data class - and copying the file key by key is what made that necessary. They had already drifted: checkForUpdates defaulted to false in ConfigManager while both config.yml and the data class said true. Worse, features.channelChat.messageLogging was documented in config.yml with three settings and never parsed at all. ConfigManager did not build it, so ChannelMessageLoggingConfig() always won and an operator editing retentionDays or maxFileSizeMB changed nothing. Those settings now take effect - the documented behaviour, but a real change for anyone whose file disagrees with the defaults. KAML deserializes the file straight into the tree, the same way player settings and channel data are already read, so a default now lives only on the data class. Two consequences worth stating: - japaneseConversion.cache and .api are nested classes now, because the data has to match the file rather than the file being flattened by hand on the way in. The YAML is unchanged. - api.retryAttempts is gone from config.yml. It was parsed and stored, but never reached GoogleIMEClient or RomanjiConverter, so it documented a knob that did nothing. Unknown keys are ignored and a malformed file falls back to defaults with a log line, so neither an old config nor a typo stops the server booting. The tests parse real YAML instead of a mocked FileConfiguration, which lets them cover what the mock could not: a partial file, a retired key, a malformed document, and - the one that would have caught the drift above - that the bundled config.yml equals the declared defaults. Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-02refactor: remove code that no production path reachesSho Sakuma
These were all scaffolding that drifted out of use, and each one costs a reader time before they discover it does nothing: - UUIDASStringSerializer duplicated UUIDSerializer byte for byte; the differing descriptor name never reaches the JSON/YAML wire format, so the choice between them was a coin flip for contributors. - Velocity's BuildInfo was never referenced (the plugin reads its version from PluginContainer) and read a "commit" property the build never wrote, so it would have reported "unknown" had anyone called it. - KanaConverter.TrieNode.Leaf is never constructed: buildTrie starts from a Branch and insert only ever returns Branch. Six branches guarded against a state the type system allowed but the code could not produce. With those gone, isValidRomaji and toHiragana were visibly the same trie walk, so they now share one longestMatch. - @Deprecated command handling had no annotated command to act on. - The settings backup restore looked for *.backup.* files that nothing in the repository writes, so it always fell through to empty settings. Also drops CommandContext.replyWithEvent/replyPlain, PluginCoroutineScope's unused plugin parameter, GitHubRelease fields no caller reads, and four language keys with no lookup site. Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-02feat: support Paper 26.2 (Minecraft 26.2)Sho Sakuma
Paper 26.2 bundles Adventure 5.2.0, a major bump from the 4.26.1 shipped by 26.1. Adventure 5 makes ClickEvent generic, so the raw type in CommandContext.replyWithEvent no longer compiled. Auditing the rest of the Adventure 5 removals found no other affected usage. api-version is raised to 26.2, dropping 26.1 support: the two Adventure majors are not binary compatible, so claiming 26.1 compatibility would be a lie. Also fixes two problems found while verifying on a real server: the Velocity healthcheck invoked mc-health, which does not exist in the mc-proxy image, so the container had never once passed its check; and the debug environments pinned no build at all, which meant the proxy came up as 4.1.0-SNAPSHOT while the plugin is compiled against velocity-api 3.5.1. Server versions are now derived by x from the Gradle coordinates so they cannot drift from what the plugin targets.
2026-06-17feat: add cross-server direct messaging via VelocitySho Sakuma
Allow /tell and /reply to reach players on other Paper servers behind a Velocity proxy using the "<player>@<server>" target syntax. Engine (protocol bumped 1.0.0 -> 1.0.1, optional sub-channels): - Add DirectMessageRelay, DirectMessageError, PresenceSnapshot/PresenceEntry and PresenceRequest messages plus codec branches. Velocity: - CrossServerDirectMessageRelay routes a DM to the target server (or returns a delivery error to the source). - PresenceTracker broadcasts proxy-wide presence snapshots on join/quit/switch and on request. Paper: - RemotePlayerRegistry caches proxy presence for completion and remote target resolution. - CrossServerDirectMessageManager handles send/receive/error and dedup. - DirectMessageHandler reply state generalized to ReplyTarget (Local/Remote) so /reply works across servers. - TellCommand parses "name@server", completes local names and remote name@server targets, and uses exact local name matching. - New crossServerDirectMessage config flag and i18n keys (en/ja). Co-Authored-By: Claude <noreply@anthropic.com>
2026-04-04feat: Support Minecraft 26.1Sho Sakuma
2026-03-26chore: Remove unused language dataSho Sakuma
2026-03-26feat: Add Night warning to Status CommandSho Sakuma
2026-03-17feat: Improved notification messages when logging in to the serverSho Sakuma
2026-03-17feat: Remove permissionSho Sakuma
2026-03-17feat!: Remove ChatMode feature, followback channel chat modeSho Sakuma
2026-02-23feat: Add more status view to Status commandSho Sakuma
2026-02-23chore: Fix oxc errorSho Sakuma
2026-02-23docs: Update guideSho Sakuma
2026-02-23feat: Support Folia platformSho Sakuma
2026-02-11feat: Improve Velocity Integration ErrorsSho Sakuma
2026-02-11feat: Improve Velocity status command UISho Sakuma
2026-02-07fix: Fix copilot reviewSho Sakuma
2026-02-06refactor: Change to status and channel list command uiSho Sakuma
2026-02-06feat: Add cross-server chatSho Sakuma
2026-02-01feat: Support Velocity intergration in Paper moduleSho Sakuma
2026-01-31feat: Add channel loggingSho Sakuma
2026-01-27test: Add more test-caseSho Sakuma
2026-01-27docs: Add channel moderation guideSho Sakuma
2026-01-27feat: Add channe-chat featureSho Sakuma
2026-01-26feat: Add channel-chat configurationSho Sakuma
2026-01-26feat: Add ChangeChat message notificationSho Sakuma
2026-01-26refactor: Refactoring logicSho Sakuma
2026-01-26feat: Add channel-chat handleSho Sakuma
2026-01-26feat: Add chatmode dataSho Sakuma
2026-01-26feat: Add channel commandSho Sakuma
2026-01-25refactor: Organize keys by functionSho Sakuma
2026-01-25feat: Add Channel Chat feature configSho Sakuma
2026-01-25fix: Fix configuration URLSho Sakuma
2026-01-24docs: Add beta documentsSho Sakuma
2026-01-24feat: Add status commandSho Sakuma
2026-01-24feat: Add new permissionSho Sakuma
2026-01-24feat: Consolidate configuration commands into `/lc settings`Sho Sakuma
2026-01-24refactor: Changed to simple key managementSho Sakuma
2026-01-23feat: Add i18n configurationSho Sakuma
2026-01-17feat: Add `directMessageNotice` settingsSho Sakuma
2026-01-17feat: Add `checkForUpdates` config valueSho Sakuma
2026-01-17feat: Add noticeUpdate permissionSho Sakuma
2026-01-11docs: Update docsSho Sakuma
2026-01-11fix: Change file formatSho Sakuma
2026-01-10fix: Fixed an issue where long messages were not converting correctlySho Sakuma
2026-01-10docs: Add LunaticChat docsSho Sakuma
2026-01-10feat: Add user-settingsSho Sakuma
2026-01-10feat: Add toggle command permissionSho Sakuma
2026-01-10chore: Change feature configSho Sakuma
2026-01-09feat: Add spy logicSho Sakuma