-
Notifications
You must be signed in to change notification settings - Fork 216
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
Refactored the command classes that adds stats #265
base: master
Are you sure you want to change the base?
Conversation
Are the config.yaml changes required for this PR? If so could you please explain the reason |
no, disregard those. I set some options to login faster for testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution, though some changes are required before I'll approve.
@Override | ||
public void execute(Client client, String[] params) { | ||
super.execute(client, params); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of these 4 identical execute
implementations in all the subclasses? It's already implemented in StatCommand
.
//addCommand("str", StatStrCommand.class); | ||
//addCommand("dex", StatDexCommand.class); | ||
//addCommand("int", StatIntCommand.class); | ||
//addCommand("luk", StatLukCommand.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these comments and delete the old commands since they are useless now.
AssignStat(c, params, stat); | ||
} | ||
|
||
private void AssignStat(Client client, String[] params, Stat stat) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase method name is Java standard
DB_URL_FORMAT: "jdbc:mysql://%s:3306/cosmic" # If the docker ENV for DB_HOST is anything but "db", this string format should be changed from 3306 to 3307 (or whichever port it was changed to in docker) | ||
DB_HOST: "localhost" | ||
DB_USER: "root" | ||
DB_PASS: "" | ||
DB_PASS: "root" | ||
INIT_CONNECTION_POOL_TIMEOUT: 90 # Seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to commit your own changes to config.yaml
. Please revert all the changes to this file.
Description
Checklist before requesting a review
Screenshots