Skip to content

Conversation

@benniofficialdev
Copy link
Contributor

Shorthend code a little bit and as well added server response in case args[0] isn't equals "reload", but e.g. contains a typo like "relod" (fixed #13492). Simply added check, whether args[0] is equals "reload" to the first "if", where the usage response is included and added a ||, so that there are no issues with wrong arguments as it only checks the second condition if the first condition is wrong, so only if args.length != 1 is wrong, so only if args.length is equals 1. Also shortend code a little bit as the check for args[0].equals("reload") is no longer necessary a second time -> fixed.

Shorthend code a little bit and as well added server response in case args[0] isn't equals "reload", but e.g. contains a typo like "relod" (fixed PaperMC#13492). Simply added check, whether args[0] is equals "reload" to the first "if", where the usage response is included and added a ||, so that there are no issues with wrong arguments as it only checks the second condition if the first condition is wrong, so only if args.length != 1 is wrong, so only if args.length is equals 1. Also shortend code a little bit as the check for args[0].equals("reload") is no longer necessary a second time -> fixed.
@benniofficialdev benniofficialdev requested a review from a team as a code owner January 3, 2026 16:21
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Jan 3, 2026
@benniofficialdev benniofficialdev changed the title Update SpigotCommand.java Update SpigotCommand (fixed #).java Jan 4, 2026
@benniofficialdev benniofficialdev changed the title Update SpigotCommand (fixed #).java Update SpigotCommand (fixed #13492).java Jan 4, 2026
@benniofficialdev
Copy link
Contributor Author

I guess this is pretty simple and easy to review in nearly a few seconds, so maybe this could be approved with only a little expense, so I'd be very glad if an admin could merge this! Thank you so much @kennytv by the way for the approval at Via, I'm so happy that you helped me out with this one! 👍

@Owen1212055 Owen1212055 merged commit 51239f4 into PaperMC:main Jan 4, 2026
6 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting review to Merged in Paper PR Queue Jan 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

2 participants