[FEATURE REQUEST] Take separate server arguments after --
ion1 opened this issue · 4 comments
Is your feature request related to a problem? Please describe.
I am trying to run a Minecraft server through MCAntiMalware. Currently it seems I have to convert the server arguments into a single argument with ,
as a separator.
Describe the solution you'd like
It would be more convenient to run
java -jar MCAntiMalware.jar --serverJar path/to/paper.jar -- \
--nogui \
--plugins path/to/plugins \
--world-dir path/to/world \
--config path/to/config \
...
(following the popular --
convention) than the current
java -jar MCAntiMalware.jar --serverJar path/to/paper.jar --serverArguments \
--nogui,--plugins,path/to/plugins,--world-dir,path/to/world,--config,path/to/config,...
Describe alternatives you've considered
The alternative is to keep the current behavior.
Additional context
N/A
This is not easy to implement I'm afraid. I do have a WIP paper fork however. It is currently not made for 1.19.3, nor does it have the complete set of features or detections but the current version is https://drive.google.com/file/d/11DHiZ0F2-zwGmybXbVAzPXmBzFiAH2O4/view?usp=share_link
I'm not knowledgeable with Java, but it seems the jopt-simple library supports it through options.nonOptionArguments()
.
I do custom parsing to handle server stuff separately because of how hacky I have to make supporting the servers, I've had issues in the past when using other methods
This functionality has been removed in 15.6 in favor of using the paper fork. Latest version (1.19.3) is this https://drive.google.com/file/d/1IFYP_FneuX3hmL17cjJu4n9YNcli1bFr/view?usp=share_link
Closed.