diff --git a/pom.xml b/pom.xml
index 4a2a539..771b6ae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
ovh.mxg
CubeTP
- 1.3.0
+ 1.3.1
jar
CubeTP
diff --git a/src/main/java/ovh/mxg/cubetp/CubeTP.java b/src/main/java/ovh/mxg/cubetp/CubeTP.java
index 153a111..38b1954 100644
--- a/src/main/java/ovh/mxg/cubetp/CubeTP.java
+++ b/src/main/java/ovh/mxg/cubetp/CubeTP.java
@@ -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");
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 631ac31..e8e54fd 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -1,4 +1,4 @@
name: CubeTP
-version: '1.3.0'
+version: '1.3.1'
main: ovh.mxg.cubetp.CubeTP
api-version: '1.20'
diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml
index 09bad88..e8e54fd 100644
--- a/target/classes/plugin.yml
+++ b/target/classes/plugin.yml
@@ -1,4 +1,4 @@
name: CubeTP
-version: '1.2.2'
+version: '1.3.1'
main: ovh.mxg.cubetp.CubeTP
api-version: '1.20'