slot fixing for the future

This commit is contained in:
mikx 2023-11-27 22:31:11 -05:00
parent f4a3c334ae
commit e15fde3993
4 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@
<groupId>ovh.mxg</groupId>
<artifactId>CubeTP</artifactId>
<version>1.3.0</version>
<version>1.3.1</version>
<packaging>jar</packaging>
<name>CubeTP</name>

View File

@ -297,10 +297,10 @@ public final class CubeTP extends JavaPlugin implements Listener {
int slot = 9;
String uuid = player.getUniqueId().toString();
if(player.getBedSpawnLocation() != null){
slot = 10;
Location spawnLoc = player.getBedSpawnLocation();
String loreSp = MessageFormat.format("x{0} y{1} z{2}", spawnLoc.getBlockX(), spawnLoc.getBlockY(), spawnLoc.getBlockZ());
inv.setItem(9,createGuiItem(Material.WHITE_WOOL, "Spawn", loreSp));
inv.setItem(slot,createGuiItem(Material.WHITE_WOOL, "Spawn", loreSp));
slot++;
}
SQL.connect();
PreparedStatement ps = SQL.getConnection().prepareStatement("SELECT * FROM cubetp WHERE uuid IS NULL");

View File

@ -1,4 +1,4 @@
name: CubeTP
version: '1.3.0'
version: '1.3.1'
main: ovh.mxg.cubetp.CubeTP
api-version: '1.20'

View File

@ -1,4 +1,4 @@
name: CubeTP
version: '1.2.2'
version: '1.3.1'
main: ovh.mxg.cubetp.CubeTP
api-version: '1.20'