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

Refactoring + Slight optimization improvements + More advanced /pride command #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AceKiron
Copy link
Contributor

Refactoring

Currently the main file (Hug.java) has over 500 lines! I took it upon myself to organize everything a little bit and put everything in separate packages and files.

Slight optimization improvements

While refactoring I came across at least 4 of these empty if statements with an else statement afterwards:
image

I rewrote it slightly so now it's just an if statement.

More advanced /pride command

Something that's been on my mind since begin 2022 and the reason I decided to contribute in the first place: Currently /pride only has the option to show the rainbow hearts, which is nice and all, but I'd prefer to also be able to show pride in other colors, such as the ace colors! (black, gray, white, purple).
2022-10-22_12 00 09
My rewrite of the plugin takes an argument (with tabcompleter) to select different colors. If the argument isn't in the list or zero arguments are provided it will default to the rainbow flag.
image

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.

None yet

1 participant