meteor-addon-template icon indicating copy to clipboard operation
meteor-addon-template copied to clipboard

can't get an option from a module

Open anthony1204 opened this issue 1 year ago • 3 comments

when i try to get the class it says this: image i really don't think this is ment to happen.

anthony1204 avatar Jul 31 '24 13:07 anthony1204

image nevermind, thanks chatgpt

anthony1204 avatar Jul 31 '24 13:07 anthony1204

nevermind. you just can't get an instance. it always returns null image HELPPPPP

anthony1204 avatar Jul 31 '24 14:07 anthony1204

@anthony1204 is this still a problem? I don't think you know how modules work as settings are basic as hell.

Module module = Modules.get().get("module-name");
Setting<?> testSetting = module.settings.get("test");
double testValue = (double) testSetting.get();

Change it from double to whatever the type of value you want

Lncvrt avatar Aug 20 '24 15:08 Lncvrt

Correct fetch/implementation shown by the user above.

Big-Iron-Cheems avatar Jun 20 '25 10:06 Big-Iron-Cheems