Jump to content

change config variables within code


SHsuperCM

Recommended Posts

im still working on my firstish mod and now i ran again into a problem i cant solve with google nor the forum's search

so again i come to make a new topic about it..

 

i made a GUI on keybind and it works fine and i made a button output to log and it worked..

 

the only problem i have now is setting the config option within code..

i tried to do:

Config.config.get("Modules","CheckpointHUD",true).set(false);

like i saw online but it didnt change that to false, if you were wondering about how the config itself is built then:

# Configuration file

modules {
    # Whether to show the CheckpointHUD. [default: true]
    B:CheckpointHUD=true

    # Whether to disable the checkpoint reached message in chat. [default: true]
    B:DisableCPChat=true
}

 

please help is a wierd thing to say but ill say it anyways...

Doing stuff n' things

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.