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();
}
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();
}
Aggregations