majority of bug fixes
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
package hdvtdev.blockAndSeek;
|
||||
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.configuration.serialization.ConfigurationSerializable;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -35,6 +38,10 @@ public class BlockAndSeekMap implements ConfigurationSerializable {
|
||||
return spawn;
|
||||
}
|
||||
|
||||
public Location getSpawnLocation(@Nullable World world) {
|
||||
return new Location(world, spawn.getFirst(), spawn.get(1), spawn.get(2));
|
||||
}
|
||||
|
||||
public void setSpawn(List<Integer> spawn) {
|
||||
this.spawn = spawn;
|
||||
}
|
||||
@@ -43,6 +50,10 @@ public class BlockAndSeekMap implements ConfigurationSerializable {
|
||||
return lobby;
|
||||
}
|
||||
|
||||
public Location getLobbyLocation(@Nullable World world) {
|
||||
return new Location(world, lobby.getFirst(), lobby.get(1), lobby.get(2));
|
||||
}
|
||||
|
||||
public void setLobby(List<Integer> lobby) {
|
||||
this.lobby = lobby;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user