majority of bug fixes

This commit is contained in:
hdvt
2025-07-02 17:49:15 +03:00
parent 118f503011
commit 611ac6c213
18 changed files with 810 additions and 369 deletions

View File

@@ -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;
}