mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-19 05:51:51 +01:00
Fix typo in anchor respawn method name
This commit is contained in:
parent
c49653ebc8
commit
52a4059f98
@ -131,7 +131,7 @@ public class MVPlayerListener implements CoreListener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mvWorld.getAnchorSpawn() && event.isAnchorSpawn()) {
|
||||
if (mvWorld.getAnchorRespawn() && event.isAnchorSpawn()) {
|
||||
Logging.fine("Spawning %s at their anchor.", event.getPlayer().getName());
|
||||
return;
|
||||
}
|
||||
|
@ -11,7 +11,6 @@ import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.block.Biome;
|
||||
import org.bukkit.generator.BiomeProvider;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import org.mvplugins.multiverse.core.configuration.handle.StringPropertyHandle;
|
||||
@ -153,8 +152,8 @@ public class MultiverseWorld {
|
||||
*
|
||||
* @return True if players dying in this world should respawn at their anchor.
|
||||
*/
|
||||
public boolean getAnchorSpawn() {
|
||||
return worldConfig.getAnchorSpawn();
|
||||
public boolean getAnchorRespawn() {
|
||||
return worldConfig.getAnchorRespawn();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -14,7 +14,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import org.mvplugins.multiverse.core.MultiverseCore;
|
||||
import org.mvplugins.multiverse.core.configuration.handle.ConfigurationSectionHandle;
|
||||
import org.mvplugins.multiverse.core.configuration.handle.MemoryConfigurationHandle;
|
||||
import org.mvplugins.multiverse.core.configuration.handle.StringPropertyHandle;
|
||||
import org.mvplugins.multiverse.core.configuration.migration.*;
|
||||
@ -149,7 +148,7 @@ public final class WorldConfig {
|
||||
public Try<Void> setAllowWeather(boolean allowWeather) {
|
||||
return configHandle.set(configNodes.ALLOW_WEATHER, allowWeather);
|
||||
}
|
||||
public boolean getAnchorSpawn() {
|
||||
public boolean getAnchorRespawn() {
|
||||
return configHandle.get(configNodes.ANCHOR_RESPAWN);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user