Closed SerenityCodes closed 3 months ago
The code changes introduce a modular architecture for the EonCore plugin by implementing an abstract EonModule
class and transitioning the EonCore
class to extend JavaPlugin
. Additional modifications include the addition of a new dependency for the Reflections library, adjustments to event handling, and reorganization of package structures. These changes enhance the plugin's scalability and maintainability.
Files | Change Summary |
---|---|
pom.xml |
Added dependency for reflections library (version 0.10.2 ). |
src/main/java/com/eonnations/eoncore/EonCore.java |
Changed base class from EonPlugin to JavaPlugin ; introduced module management methods. |
src/main/java/com/eonnations/eoncore/common/EonModule.java |
Changed from concrete class to abstract class; added lifecycle methods and a constructor. |
src/main/java/com/eonnations/eoncore/common/database/sql/Credentials.java |
Updated method parameter type from EonPlugin to EonCore . |
src/main/java/com/eonnations/eoncore/messaging/EonPrefix.java |
Replaced enum constant NATIONS with ISLANDS . |
src/main/java/com/eonnations/eoncore/messaging/Messaging.java |
Updated sendNullMessage method to use EonPrefix.ISLANDS . |
src/main/java/com/eonnations/eoncore/node/Node.java |
Changed imports for FloatingItem and Hologram classes to a new package. |
src/main/java/com/eonnations/eoncore/node/NodeModule.java |
Introduced NodeModule class extending EonModule . |
src/main/java/com/eonnations/eoncore/node/holograms/FloatingItem.java |
Changed package declaration to com.eonnations.eoncore.node.holograms . |
src/main/java/com/eonnations/eoncore/node/holograms/Hologram.java |
Changed package declaration to com.eonnations.eoncore.node.holograms . |
src/main/resources/prefixes.json |
Updated JSON key from "nations" to "islands" while keeping the value unchanged. |
src/test/java/holograms/TestFloatingItem.java |
Updated import for FloatingItem to the new package. |
src/test/java/holograms/TestHologram.java |
Updated import for Hologram to the new package. |
Objective | Addressed | Explanation |
---|---|---|
Implement EonModule (#128) | ✅ |
🐰 In the realm of code, where changes flow,
New modules arise, with a vibrant glow.
From nations to islands, the prefixes now sing,
A plugin reborn, like springtime's first fling.
With reflections to guide us, our paths intertwine,
In the world of Eon, our code will shine! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Resolved #128
Summary by CodeRabbit
New Features
NodeModule
class to enhance modular functionality.Improvements
EonCore
class to extendJavaPlugin
, enhancing integration with the Bukkit API.EonModule
to be abstract, promoting better extensibility for modules.EonCore
.Changes
Bug Fixes