Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't get an option from a module #52

Open
anthony1204 opened this issue Jul 31, 2024 · 3 comments
Open

can't get an option from a module #52

anthony1204 opened this issue Jul 31, 2024 · 3 comments

Comments

@anthony1204
Copy link

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

@anthony1204
Copy link
Author

image nevermind, thanks chatgpt

@anthony1204
Copy link
Author

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

@anthony1204 anthony1204 reopened this Jul 31, 2024
@Lncvrt
Copy link

Lncvrt commented Aug 20, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants