Search in sources :

Example 1 with KitConfigAdapter

use of io.github.nucleuspowered.nucleus.modules.kit.config.KitConfigAdapter in project Nucleus by NucleusPowered.

the class KitCommand method onReload.

@Override
public void onReload() throws Exception {
    KitConfigAdapter kca = getServiceUnchecked(KitConfigAdapter.class);
    this.isDrop = kca.getNodeOrDefault().isDropKitIfFull();
    this.mustGetAll = kca.getNodeOrDefault().isMustGetAll();
}
Also used : KitConfigAdapter(io.github.nucleuspowered.nucleus.modules.kit.config.KitConfigAdapter)

Example 2 with KitConfigAdapter

use of io.github.nucleuspowered.nucleus.modules.kit.config.KitConfigAdapter in project Nucleus by NucleusPowered.

the class KitListener method onReload.

@Override
public void onReload() throws Exception {
    KitConfigAdapter kca = getServiceUnchecked(KitConfigAdapter.class);
    this.isSepratePermissions = kca.getNodeOrDefault().isSeparatePermissions();
    this.mustGetAll = kca.getNodeOrDefault().isMustGetAll();
}
Also used : KitConfigAdapter(io.github.nucleuspowered.nucleus.modules.kit.config.KitConfigAdapter)

Example 3 with KitConfigAdapter

use of io.github.nucleuspowered.nucleus.modules.kit.config.KitConfigAdapter in project Nucleus by NucleusPowered.

the class KitGiveCommand method onReload.

@Override
public void onReload() throws Exception {
    KitConfigAdapter kca = getServiceUnchecked(KitConfigAdapter.class);
    this.isDrop = kca.getNodeOrDefault().isDropKitIfFull();
    this.mustGetAll = kca.getNodeOrDefault().isMustGetAll();
}
Also used : KitConfigAdapter(io.github.nucleuspowered.nucleus.modules.kit.config.KitConfigAdapter)

Aggregations

KitConfigAdapter (io.github.nucleuspowered.nucleus.modules.kit.config.KitConfigAdapter)3