diff --git a/src/main/java/louisvallat/xyz/backhome/BackHome.java b/src/main/java/louisvallat/xyz/backhome/BackHome.java index ff11aec..3243c2a 100644 --- a/src/main/java/louisvallat/xyz/backhome/BackHome.java +++ b/src/main/java/louisvallat/xyz/backhome/BackHome.java @@ -391,7 +391,7 @@ public class BackHome extends JavaPlugin implements Listener, TabCompleter { stmt.setString(2, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())); stmt.setDouble(3, player.getLocation().getX()); stmt.setDouble(4, player.getLocation().getY()); - stmt.setDouble(5, player.getLocation().getY()); + stmt.setDouble(5, player.getLocation().getZ()); stmt.setFloat(6, player.getLocation().getYaw()); stmt.setFloat(7, player.getLocation().getPitch()); stmt.setString(8, player.getLocation().getWorld().getName());