MinecraftServerControl / mscs

Powerful command-line control for UNIX and Linux powered Minecraft servers
https://minecraftservercontrol.github.io
BSD 2-Clause "Simplified" License
479 stars 61 forks source link

Clear WORLDS variable at beginning of command handlers #310

Closed xathon closed 2 years ago

xathon commented 2 years ago

When handling some commands, msctl would add text to the worlds variable without clearing it before. That way, if the worlds variable had been set to a different value outside of msctl, these values would have been parsed by mscs. This PR fixes this by clearing the variable before it is filled by msctl.

See also #309 . This fixes the 2nd part of the issue.