mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-20 22:42:03 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mvWorld.getAnchorSpawn() && event.isAnchorSpawn()) {
|
if (mvWorld.getAnchorRespawn() && event.isAnchorSpawn()) {
|
||||||
Logging.fine("Spawning %s at their anchor.", event.getPlayer().getName());
|
Logging.fine("Spawning %s at their anchor.", event.getPlayer().getName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@ import org.bukkit.Location;
|
|||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.block.Biome;
|
import org.bukkit.block.Biome;
|
||||||
import org.bukkit.generator.BiomeProvider;
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import org.mvplugins.multiverse.core.configuration.handle.StringPropertyHandle;
|
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.
|
* @return True if players dying in this world should respawn at their anchor.
|
||||||
*/
|
*/
|
||||||
public boolean getAnchorSpawn() {
|
public boolean getAnchorRespawn() {
|
||||||
return worldConfig.getAnchorSpawn();
|
return worldConfig.getAnchorRespawn();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,7 +14,6 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import org.mvplugins.multiverse.core.MultiverseCore;
|
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.MemoryConfigurationHandle;
|
||||||
import org.mvplugins.multiverse.core.configuration.handle.StringPropertyHandle;
|
import org.mvplugins.multiverse.core.configuration.handle.StringPropertyHandle;
|
||||||
import org.mvplugins.multiverse.core.configuration.migration.*;
|
import org.mvplugins.multiverse.core.configuration.migration.*;
|
||||||
@ -149,7 +148,7 @@ public final class WorldConfig {
|
|||||||
public Try<Void> setAllowWeather(boolean allowWeather) {
|
public Try<Void> setAllowWeather(boolean allowWeather) {
|
||||||
return configHandle.set(configNodes.ALLOW_WEATHER, allowWeather);
|
return configHandle.set(configNodes.ALLOW_WEATHER, allowWeather);
|
||||||
}
|
}
|
||||||
public boolean getAnchorSpawn() {
|
public boolean getAnchorRespawn() {
|
||||||
return configHandle.get(configNodes.ANCHOR_RESPAWN);
|
return configHandle.get(configNodes.ANCHOR_RESPAWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user