Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
A lightweight yet powerful essentials plugin with integrated economy and smart moderation features!
2.4.2
This pull request includes updates to workflows, versioning, and command implementations in the LyttleEssentials
plugin. Key changes include upgrading Java versions in workflows, updating plugin and platform versions, improving permission checks, and enhancing code readability and maintainability.
Workflow Updates:
- Upgraded Java version from JDK 17 to JDK 21 across
.github/workflows/alpha.yml
,.github/workflows/beta.yml
, and.github/workflows/main.yml
. Changed the distribution fromtemurin
tocorretto
for compatibility.
Version Updates:
- Updated
pluginVersion
to2.4.2
andpaperVersion
to1.21.4
ingradle.properties
to reflect the latest supported versions.
Command Enhancements:
AdminTeleportCommand:
- Added granular permission checks for self, other, and general teleportation commands.
- Replaced
player.getName()
withgetDisplayName(player)
for better user display consistency.
FlyCommand:
- Improved permission handling by adding a top-level check for
lyttleessentials.fly
before proceeding. - Simplified player-not-found logic by removing redundant checks.
- Improved permission handling by adding a top-level check for
GamemodeCommand:
- Streamlined permission checks and removed unnecessary nested conditions for better readability.
- Introduced
getDisplayName(player)
for consistent messaging.
HomeCommand:
- Added specific permissions for setting, deleting, and using home commands for self and others.
- Used
getDisplayName(player)
for improved player identification in messages.
RepairCommand:
- Refactored permission checks and usage messages for clarity and consistency.
General Improvements:
- Replaced mutable fields with
final
where applicable (e.g.,plugin
inAdminTeleportCommand
) to enhance immutability. - Removed redundant checks and assertions across commands for cleaner code.
These updates collectively improve the maintainability, security, and functionality of the plugin.
Information
Published on | May 3, 2025 |
---|---|
Downloads | 1 |
Platforms
Paper (1.21.4)