BeamMP-Server icon indicating copy to clipboard operation
BeamMP-Server copied to clipboard

[Bug] Running `settings help` returns nothing

Open Mack29446 opened this issue 3 years ago • 3 comments

Fill out general information OS: Linux BeamMP-Server Version: 3.1.1

Describe the bug Running the settings help command, as suggested within the help command, returns nothing

To Reproduce Steps to reproduce the behavior:

  1. Run settings help
  2. Observe nothing happen

Expected behavior Something to happen

Mack29446 avatar Nov 22 '22 22:11 Mack29446

Yeah, I'm an idiot and forgot to remove settings from 3.1.x. It'll be implemented properly in 3.2.0, and has get, set, etc.

Please feel free to try it (contact me to get a pre-release-build for example), or see an example here: image

So this will be fixed by v3.2.0, and can't be fixed in v3.1.1 (as it doesn't exist).

lionkor avatar Nov 23 '22 08:11 lionkor

Should this maybe go alongside refactoring settings all together? The behavior from the screenshot is proving hard to implement without some ugly code like a massive if/else if/else if etc statement.

If so, I would go ahead and open a separate issue for that.

jimkoen avatar Feb 17 '24 02:02 jimkoen

Feel free to refactor the settings, but be aware they are used quite literally everywhere. Of course some settings shouldn't be accessible, only AuthKey comes to mind.

The TOML has to stay etc. and the behavior from the users side should be very similar. Make a new issue for sure!

lionkor avatar Feb 17 '24 09:02 lionkor