Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded the /dm list command #164

Merged
merged 2 commits into from
Jan 2, 2025
Merged

Upgraded the /dm list command #164

merged 2 commits into from
Jan 2, 2025

Conversation

BlitzOffline
Copy link
Member

TLDR; Improved /dm list command and some general cleanup.

  • Changed singleton usage for plugin class to DI
  • Removed some static methods in plugin class in favor of their instance counterparts
  • Split the command class into subcommand classes
  • Added pagination to the menu list command. The old list format is still available using '/dm list all'
  • Added an option to suggest the admin '/dm open menu' command in the menu list
  • Added an option to change the page size for the menu list
  • Added a new GeneralConfig class to hold and handle the general values from config.yml
  • Moved some constants around to avoid unnecessary passing of variables

Changes were tested on Paper 1.21.1 and Paper 1.21.3
Closes #133

- Changed singleton usage for plugin class to DI
- Removed some static methods in plugin class in favor of their instance counterparts
- Split the command class into subcommand classes
- Added pagination to the menu list command. The old list format is still available using '/dm list all'
- Added an option to suggest the admin '/dm open menu' command in the menu list
- Added an option to change the page size for the menu list
- Added a new GeneralConfig class to hold and handle the general values from config.yml
- Moved some constants around to avoid unnecessary passing of variables
@BlitzOffline BlitzOffline merged commit ee7573d into main Jan 2, 2025
2 checks passed
@BlitzOffline BlitzOffline deleted the issue/133 branch January 2, 2025 21:54
Sign up for free to 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.

[Suggestion] Improve "/deluxemenus list"
2 participants