Search in sources :

Example 1 with NicknameConfig

use of io.github.nucleuspowered.nucleus.modules.nickname.config.NicknameConfig in project Nucleus by NucleusPowered.

the class NicknameService method onReload.

@Override
public void onReload() {
    NicknameConfig nc = Nucleus.getNucleus().getConfigAdapter(NicknameModule.ID, NicknameConfigAdapter.class).get().getNodeOrDefault();
    pattern = nc.getPattern();
    min = nc.getMinNicknameLength();
    max = nc.getMaxNicknameLength();
}
Also used : NicknameConfig(io.github.nucleuspowered.nucleus.modules.nickname.config.NicknameConfig)

Aggregations

NicknameConfig (io.github.nucleuspowered.nucleus.modules.nickname.config.NicknameConfig)1