Search in sources :

Example 1 with WarpConfig

use of io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfig in project Nucleus by NucleusPowered.

the class ListWarpCommand method onReload.

@Override
public void onReload() throws Exception {
    WarpConfig warpConfig = getServiceUnchecked(WarpConfigAdapter.class).getNodeOrDefault();
    this.defaultName = warpConfig.getDefaultName();
    this.defaultCost = warpConfig.getDefaultWarpCost();
    this.isDescriptionInList = warpConfig.isDescriptionInList();
    this.isCategorise = warpConfig.isCategoriseWarps();
    this.isSeparatePerms = warpConfig.isSeparatePermissions();
}
Also used : WarpConfigAdapter(io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfigAdapter) WarpConfig(io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfig)

Example 2 with WarpConfig

use of io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfig in project Nucleus by NucleusPowered.

the class WarpCommand method onReload.

@Override
public void onReload() throws Exception {
    WarpConfig wc = getServiceUnchecked(WarpConfigAdapter.class).getNodeOrDefault();
    this.defaultCost = wc.getDefaultWarpCost();
    this.isSafeTeleport = wc.isSafeTeleport();
}
Also used : WarpConfigAdapter(io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfigAdapter) WarpConfig(io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfig)

Aggregations

WarpConfig (io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfig)2 WarpConfigAdapter (io.github.nucleuspowered.nucleus.modules.warp.config.WarpConfigAdapter)2