AuthMe Reloaded

AuthMe Reloaded

3M Downloads

Configuration API

ImagineWave opened this issue · 5 comments

commented

What feature do you want to see added?

Override configuration settings through API

for example I need to override login/register message interval

Are there any alternatives?

Right now it's possible only though reflection dark magic

Anything else?

No response

commented

You could use reflections to obtain the AuthMe.injector instance and then invoke injector.getSingleton(SettingsManager) to interact with our settings manager.

commented

How to set Property MESSAGE_INTERVAL? I should use ur ch.jalu.configme.properties.Property ?

commented

The properties’ values can be changed in config.yml

commented

The properties’ values can be changed in config.yml

BRUH
are u suggesting as a solution that I corrupt user configs?
I'm trying to do integration plugin

commented

I don't think you should override settings that a user can change in a config file. But what sgdc3 said would indeed work.