Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Lyttle-Development

A powerful, lightweight staff management plugin with advanced moderation features!

Report LyttleAdmin?

Release
1.2.3

Stualyttle released LyttleAdmin version 1.2.3 on Thu 6:51 AM

v1.2.3

This pull request introduces significant enhancements to the configuration and role management system in the LyttleAdmin plugin. The changes include updating the plugin version, refactoring the code to centralize role-related actions, and adding new configuration types for better flexibility and maintainability. Additionally, it removes hardcoded role management logic and replaces it with a dynamic configuration-driven approach.

Configuration Updates:

  • Version Updates: Updated pluginVersion to 1.2.3 and paperVersion to 1.21.8 in gradle.properties for compatibility with newer versions.
  • Default Configs: Added defaultGeneral configuration in Configs.java to support default values for general settings.

Role Management Refactoring:

  • Dynamic Role Actions: Replaced hardcoded role management methods (giveRole, removeRole, etc.) with a centralized runActions method that dynamically handles role actions based on configurations.
  • Role Configuration System: Introduced new POJO classes (RolesConfig, RoleConfig, ActionsConfig, RoleAction, RoleChange, BroadcastConfig) to encapsulate role-related settings and actions.

Code Simplification:

  • Staff Mode Logic: Consolidated onStaffModeEnabled and onStaffModeDisabled logic to use the new runActions method, removing redundant methods like onStaffModeEnabledAdmin and onStaffModeEnabledModerator.
  • Utility Enhancements: Added RolesConfigLoader utility for converting configuration objects into POJOs.

Logging Improvements:

  • Error Handling: Enhanced logging for errors during staff mode enable/disable actions to improve debugging.

These changes improve the scalability and maintainability of the plugin by leveraging configuration-driven logic and reducing hardcoded dependencies.

Information

Published onJuly 24, 2025
Downloads0

Platforms

Paper Paper (1.21.8)