Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

mc-cc-scripts/settingsManager-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Deprecated

Use (Config-lib)[https://github.com/mc-cc-scripts/config-lib] instead!

settingsManager-prog

Manages ComputerCraft Settings

settingsService.getset(<settingsKey>: String, <content>: any, <defaultContent>: table|string) : any

Uses

getset

Is used to quickly write content into the specified Settings-Key, or get the current Content.

  • If content is provided, the current content is saved and returned
  • If no content is provided, the current Settings-Content is returned
    • if no current Settings-Content is set, the default-Content is saved and returned

Example

local settingsService = require('./libs/settingsService')
local user = 'mc-cc-scripts'
local greetingText = settingsService.getSet('greetingText', 'Hello '..user, 'Hello User')
-- greetingText => 'Hello mc-cc-scripts'

About

Manages ComputerCraft Settings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages