stargate-rewritten / Stargate-Interfaces

An interaction addon for features that break StarGate's user-immersion principle (commands and GUIs that exist outside of gameplay)
https://sgrewritten.org/infosgi
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Hidden configuration editing #9

Open EpicKnarvik97 opened 2 years ago

EpicKnarvik97 commented 2 years ago

While being able to edit hidden configurations like any other configuration would be dangerous, it would make sense to have a hidden command to edit those configuration values. A command such as /sgc hiddenconfig should not be available in tab completion, but should work if typed correctly. It would expose a list of only the hidden configuration values. The existing ConfigCommand class should be modified to be able to modify the hidden configuration values, without duplicating code.