Search in sources :

Example 1 with SpawnConfig

use of io.github.nucleuspowered.nucleus.modules.spawn.config.SpawnConfig in project Nucleus by NucleusPowered.

the class SpawnOtherCommand method onReload.

@Override
public void onReload() throws Exception {
    SpawnConfig sc = getServiceUnchecked(SpawnConfigAdapter.class).getNodeOrDefault();
    this.gsc = sc.getGlobalSpawn();
    this.safeTeleport = sc.isSafeTeleport();
}
Also used : SpawnConfigAdapter(io.github.nucleuspowered.nucleus.modules.spawn.config.SpawnConfigAdapter) SpawnConfig(io.github.nucleuspowered.nucleus.modules.spawn.config.SpawnConfig) GlobalSpawnConfig(io.github.nucleuspowered.nucleus.modules.spawn.config.GlobalSpawnConfig)

Aggregations

GlobalSpawnConfig (io.github.nucleuspowered.nucleus.modules.spawn.config.GlobalSpawnConfig)1 SpawnConfig (io.github.nucleuspowered.nucleus.modules.spawn.config.SpawnConfig)1 SpawnConfigAdapter (io.github.nucleuspowered.nucleus.modules.spawn.config.SpawnConfigAdapter)1