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

Custom jar arguments & 1.2.1 #5

Merged
merged 5 commits into from
Jun 5, 2020
Merged

Custom jar arguments & 1.2.1 #5

merged 5 commits into from
Jun 5, 2020

Conversation

Tomaszal
Copy link
Contributor

@Tomaszal Tomaszal commented Jun 5, 2020

Implemented a feature suggested in issue #3. Changed the version to 1.2.1 and built a new jar.

Copy link
Owner

@OasisArtisan OasisArtisan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you took the initiative. The feature implementation looks good thanks.
I have a couple of changes before I merge this request.

  • I think customServerArgs is more descriptive than customJarArgs in all variables and printouts.

  • I'd rather I compile and add the binary myself for security purposes. so commit "Built 1.2.1 jar" will be left out from the merge.

  • Most importantly, we need to consider users who are already using the plugin when we add something to the JSON storage. Right now they will get an error because the "customJarArgs" key wouldn't be present. So a simple if statement check in JSONStorage.java before trying to get that value would solve this. If the key is not present put the null default value.

@Tomaszal
Copy link
Contributor Author

Tomaszal commented Jun 5, 2020

That should work. I tested on an existing config without customServerArgs and it seemed to be fine now.

Copy link
Owner

@OasisArtisan OasisArtisan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright tested and looks good. Thanks for the contribution

@OasisArtisan OasisArtisan merged commit 7b4fc70 into OasisArtisan:master Jun 5, 2020
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.

2 participants