Skip to content

Feature implementation from commits 1531cf4..3b0c229 - #4

Open
codeOwlAI wants to merge 25 commits into
feature-base-branch-2from
feature-head-branch-2
Open

Feature implementation from commits 1531cf4..3b0c229#4
codeOwlAI wants to merge 25 commits into
feature-base-branch-2from
feature-head-branch-2

Conversation

@codeOwlAI

@codeOwlAIcodeOwlAI commented Jun 29, 2025

Copy link
Copy Markdown
Owner

PR Summary

API Enhancements and New Provider Implementation

Overview

This PR introduces several API enhancements across multiple modules including a nickname regex configuration, user activity tracking, Discord message formatting, and a new command synchronization provider for Bukkit 1.21.4+.

Change Types

TypeDescription
EnhancementAdded nickname regex validation capability
EnhancementAdded user last activity time tracking
EnhancementImproved hex color handling
EnhancementAdded Discord PM message formatting
EnhancementAdded modern command synchronization provider for 1.21.4+

Affected Modules

Module / FileChange Description
src/main/java/com/earth2me/essentials/ISettings.javaAdded nickname regex method declaration
src/main/java/com/earth2me/essentials/Settings.javaImplemented nickname regex pattern configuration
src/main/java/com/earth2me/essentials/User.javaAdded last activity time getter
src/main/java/com/earth2me/essentials/signs/SignBuy.javaAdded import for transaction event
src/main/java/com/earth2me/essentials/signs/SignSell.javaAdded import for transaction event
src/main/java/com/earth2me/essentials/utils/AdventureUtil.javaModified hex color handling
src/main/java/net/essentialsx/discord/DiscordSettings.javaAdded private message format for Discord
BaseProviders/.../ModernSyncCommandsProvider.javaImplemented provider for Bukkit 1.21.4+ command sync

Notes for Reviewers

  • The new ModernSyncCommandsProvider includes a test method to verify compatibility with Bukkit 1.21.4+
  • Changes to hex color handling include an unconditional call alongside existing conditional implementation

JRoyand others added 25 commits March 1, 2025 13:59
Unclear how this happens, possibly a division error?
FixesEssentialsX#6043
On 1.21.4+ Player#updateCommands has the same logic as CraftServer#updateCommands, so we can just use that.
1.21 Adds a new org.bukkit.spawner.Spawner class as a superclass of CreatureSpawner which now contains the setMaxSpawnDelay method. Change our test to look for the method on any superclasses too.
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
This allows EssentialsX Discord to send EssentialsX Chat messages to
Discord when `use-essentials-events: true` is set in the Discord config
while local chat is disabled.
It also allows plugins to hook and modify EssentialsX Chat message
contents, formatting and recipients when local chat is disabled.
Need to explicitly enable them in our LegacyComponentSerializer.
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
Fixes an issue for API consumers getting Adventure in our exception messages.
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
Migrate the few typo fixes from Crowdin's English US translation into the source messages.properties file (which is also English US).
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
This PR significantly overhauls the comments of the EssentialsX configuration files, ensuring consistency, clarity, and overall improved grammar (validated by Grammarly and LLMs). There are still a few things that must be completed before this is ready to be merged, but no further significant changes are expected. A couple of options have been moved entirely to make more logical sense, but this will not affect any compatibility.
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

12 participants

@codeOwlAI@JRoy@Flask-Bot@Chew@maxcom1@Lunna5@mrbubbles06@sumsar1812@mdcfe@kennytv@luftwafflezz@JasonHorkles