MCPcopy Create free account
hub / github.com/MCJack123/craftos2 / getConfigSettingInt

Function getConfigSettingInt

src/plugin.cpp:51–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50static std::string getConfigSetting(const std::string& name) {return config.pluginData.at(name);}
51static int getConfigSettingInt(const std::string& name) {return std::stoi(config.pluginData.at(name));}
52static bool getConfigSettingBool(const std::string& name) {
53 const std::string val = config.pluginData.at(name);
54 if (val == "true") return true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected