Sueta

LyttleAdmin

1.2.7

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

·Plugin
  1. 1.2.7latestAug 24, 2025
    v1.2.7 This pull request makes several improvements to the project's build and release automation, as well as some internal refactoring and minor feature updates. The main theme is the consolidation and enhancement of CI/CD workflows, along with some codebase clean-up and dependency updates. CI/CD Workflow Improvements: * Consolidated the separate main.yml and alpha.yml GitHub Actions workflows into a single unified workflow file, release-and-publish.yml, which now handles releases for both the main and alpha branches. This new workflow also adds steps to build artifacts, tag releases, and upload JAR files as GitHub releases. The old workflow files were removed. [[1]](diffhunk://#diff-f1aa31b040aa63ad53feecf5f41bcf0699b50576cc2b1f1ed23daf0d12b5fe8dR1-R144) [[2]](diffhunk://#diff-77705eb5ee9cd3186d976656ab5cd8d5177355a6a4f3631c004205b636830473L1-L57) [[3]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L1-L57) Dependency and Version Updates: * Updated the plugin version in gradle.properties from 1.2.6 to 1.2.7. Codebase Refactoring: * Replaced usage of the Config class with the new YamlConfig class in Configs.java, updating both instance variables and constructor usage accordingly. * Refactored action bar handling in StaffCommand.java to use the shared ActionBar utility class, removing the custom setActionBar method and its associated state. [[1]](diffhunk://#diff-4d2e63385863a7805b1f245f9f73631c391af074941f26e79d0667e1c1ee7e28R11) [[2]](diffhunk://#diff-4d2e63385863a7805b1f245f9f73631c391af074941f26e79d0667e1c1ee7e28L348-R352) [[3]](diffhunk://#diff-4d2e63385863a7805b1f245f9f73631c391af074941f26e79d0667e1c1ee7e28L395-L411)
    48 downloads
  2. 1.2.7-ALPHA.1Aug 24, 2025
    v1.2.7 This pull request consolidates and modernizes the CI/CD GitHub Actions workflows for publishing releases, and refactors some internal code to improve maintainability and consistency. The most significant changes include merging separate workflow files into a unified workflow, updating the plugin version, and refactoring configuration and action bar handling in the codebase. CI/CD Workflow Consolidation and Improvements: * Replaced the separate .github/workflows/main.yml and .github/workflows/alpha.yml with a single .github/workflows/release-and-publish.yml workflow. This new workflow handles both main and alpha branches, automates version tagging, builds artifacts, and publishes to GitHub Releases, Hangar, and Modrinth, reducing duplication and simplifying maintenance. (.github/workflows/release-and-publish.yml [[1]](diffhunk://#diff-f1aa31b040aa63ad53feecf5f41bcf0699b50576cc2b1f1ed23daf0d12b5fe8dR1-R144) .github/workflows/main.yml [[2]](diffhunk://#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L1-L57) .github/workflows/alpha.yml [[3]](diffhunk://#diff-77705eb5ee9cd3186d976656ab5cd8d5177355a6a4f3631c004205b636830473L1-L57) Version Update: * Updated the plugin version from 1.2.6 to 1.2.7 in gradle.properties. (gradle.properties [gradle.propertiesL2-R2](diffhunk://#diff-3d103fc7c312a3e136f88e81cef592424b8af2464c468116545c4d22d6edcf19L2-R2)) Codebase Refactoring: _Config Handling:_ * Refactored Configs to use YamlConfig instead of Config for all configuration files, improving type consistency and clarity. (src/main/java/com/lyttldev/lyttleadmin/types/Configs.java [src/main/java/com/lyttldev/lyttleadmin/types/Configs.javaL4-R27](diffhunk://#diff-0ee1a1a106253bbc4f7001394074ec2ce3d19f0cd94ac84f806f876ff7486423L4-R27)) _Action Bar Handling:_ * Refactored the action bar logic in StaffCommand: replaced the custom setActionBar implementation with the shared ActionBar.setActionBar utility, removing duplicate code and centralizing action bar management. (src/main/java/com/lyttldev/lyttleadmin/commands/StaffCommand.java [[1]](diffhunk://#diff-4d2e63385863a7805b1f245f9f73631c391af074941f26e79d0667e1c1ee7e28R11) [[2]](diffhunk://#diff-4d2e63385863a7805b1f245f9f73631c391af074941f26e79d0667e1c1ee7e28L348-R352) [[3]](diffhunk://#diff-4d2e63385863a7805b1f245f9f73631c391af074941f26e79d0667e1c1ee7e28L395-L411)
    14 downloads
  3. unspecifiedJul 28, 2025
    v1.2.6 This pull request includes several changes across multiple files, focusing on workflow adjustments, version updates, dependency removal, and a minor code fix. Below is a categorized summary of the most important changes:
    Workflow Adjustments:
    * Removed the workflow for publishing packages on the beta branch. This includes steps for publishing to GitHub Packages, Hangar, and Modrinth. * Updated the workflow to target the main branch instead of the beta branch for package publishing.
    Version Updates:
    * Incremented the plugin version from 1.2.4 to 1.2.6.
    Dependency Removal:
    * Removed the file containing version information and dependencies for Paper API, LuckPerms API, and SQLite JDBC.
    Code Fix:
    *Modified the runActions method to always enable the action bar when a message is set, replacing the dynamic enable parameter with a hardcoded true.
    35 downloads
  4. unspecified-ALPHA.14Jul 28, 2025
    v1.2.6 This pull request includes several changes across multiple files, focusing on workflow adjustments, version updates, dependency removal, and a minor code fix. Below is a categorized summary of the most important changes:
    Workflow Adjustments:
    * Removed the workflow for publishing packages on the beta branch. This includes steps for publishing to GitHub Packages, Hangar, and Modrinth. * Updated the workflow to target the main branch instead of the beta branch for package publishing.
    Version Updates:
    * Incremented the plugin version from 1.2.4 to 1.2.6.
    Dependency Removal:
    * Removed the file containing version information and dependencies for Paper API, LuckPerms API, and SQLite JDBC.
    Code Fix:
    *Modified the runActions method to always enable the action bar when a message is set, replacing the dynamic enable parameter with a hardcoded true.
    16 downloads
  5. 1.2.4-ALPHA.13Jul 26, 2025
    v1.2.4 This pull request introduces several updates to enhance role-based actions, improve code readability, and add new functionality for action bar messages. The changes include refactoring method and variable names, implementing dynamic action bar messages, and updating configuration files to support these enhancements.
    Code Refactoring and Cleanup:
    * Refactored method and variable names in ActionsConfig to use camelCase (onEnable and onDisable) for consistency. * Removed unused imports and logging references in StaffCommand.java for cleaner code.
    Action Bar Enhancements:
    * Added support for dynamic action bar messages in RoleAction with new actionBar property. * Replaced the old actionBar method in StaffCommand.java with a more flexible setActionBar method, allowing custom messages and clearing the action bar when needed.
    Configuration Updates:
    * Updated default configuration files (config.yml and #defaults/config.yml) to include action_bar messages for admin and moderator roles. * Corrected role-related tags in configuration files to distinguish between admin and moderator actions.
    Role Action Mapping:
    * Enhanced RolesConfigLoader to map action_bar property from configuration files to RoleAction objects.
    Version Update:
    * Updated pluginVersion in gradle.properties from 1.2.3 to 1.2.4.
    19 downloads
  6. 1.2.3Jul 24, 2025
    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.
    16 downloads
  7. 1.2.3-ALPHA.12Jul 23, 2025
    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.
    13 downloads
  8. 1.2.2-ALPHA.11Jun 23, 2025
    v1.2.2 This pull request updates the workflows for publishing packages, improves version handling, and refines command message functionality. The changes primarily focus on enhancing automation and user experience.
    Workflow Updates
    * Renamed the workflow to "Release & Publish Packages (Alpha Branch)" and added detailed comments for each step. Integrated publishing to GitHub Packages, Hangar, and Modrinth platforms. * Renamed the workflow to "Release & Publish Packages (Beta Branch)" with similar updates as the Alpha workflow, including publishing to multiple platforms. * Renamed the workflow to "Release & Publish Packages (Beta Branch)" and changed the branch trigger from main to beta. Added publishing steps for GitHub Packages, Hangar, and Modrinth.
    Version Updates
    * Updated the plugin version from 1.2.1 to 1.2.2 and incremented the paperVersion from 1.21.5 to 1.21.6.
    Command Improvements
    * Enhanced the /lyttleadmin command to dynamically fetch the plugin version using plugin.getDescription().getVersion and send messages using the plugin.message.sendMessageRaw method.
    Miscellaneous
    * Removed the permission field from the staff command configuration.
    20 downloads
  9. 1.2.2-ALPHA+10Jun 23, 2025
    v1.2.2 This pull request updates the workflows for publishing packages, improves version handling, and refines command message functionality. The changes primarily focus on enhancing automation and user experience.
    Workflow Updates
    * Renamed the workflow to "Release & Publish Packages (Alpha Branch)" and added detailed comments for each step. Integrated publishing to GitHub Packages, Hangar, and Modrinth platforms. * Renamed the workflow to "Release & Publish Packages (Beta Branch)" with similar updates as the Alpha workflow, including publishing to multiple platforms. * Renamed the workflow to "Release & Publish Packages (Beta Branch)" and changed the branch trigger from main to beta. Added publishing steps for GitHub Packages, Hangar, and Modrinth.
    Version Updates
    * Updated the plugin version from 1.2.1 to 1.2.2 and incremented the paperVersion from 1.21.5 to 1.21.6.
    Command Improvements
    * Enhanced the /lyttleadmin command to dynamically fetch the plugin version using plugin.getDescription().getVersion and send messages using the plugin.message.sendMessageRaw method.
    Miscellaneous
    * Removed the permission field from the staff command configuration.
    24 downloads
  10. 1.2.1LyttleAdmin 1.2.1Jun 22, 2025
    v1.2.1 This pull request introduces significant enhancements to the LyttleAdmin plugin, focusing on improving the user experience, modernizing the codebase, and adding support for advanced message formatting. The most important changes include a complete overhaul of the README.md for better documentation, integration of MiniMessage for customizable message formatting, and the introduction of a GlobalConfig class for centralized configuration management.
    Documentation Updates:
    * README.md: Overhauled the documentation to include detailed sections for features, commands, permissions, installation, configuration, and support. Added badges, links, and visual dividers for improved readability.
    Code Enhancements:
    * Introduced a GlobalConfig class for centralized configuration management and updated the Message class initialization to include global as a parameter.
    Message Formatting Improvements:
    * Replaced legacy string replacements with the MiniMessage library for advanced message formatting and introduced a Replacements builder for cleaner and more maintainable code. * Updated the reload command to use Component.text for sending messages, ensuring consistency with the new message formatting approach.
    36 downloads

Similar projects

Plugin →