From 8ac792f0b8e79c987def3087680b839ae4ba406a Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Sat, 13 Apr 2019 18:06:33 +0200 Subject: [PATCH] hotfix Signed-off-by: yaruma3341 --- src/de/warking/schematicsystem/listener/PlayerJoinListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/warking/schematicsystem/listener/PlayerJoinListener.java b/src/de/warking/schematicsystem/listener/PlayerJoinListener.java index 2eda900..f0b7308 100644 --- a/src/de/warking/schematicsystem/listener/PlayerJoinListener.java +++ b/src/de/warking/schematicsystem/listener/PlayerJoinListener.java @@ -21,7 +21,7 @@ public class PlayerJoinListener implements Listener { if(files == null || files.length == 0) return; for(int i = 0; i < files.length; i++) { - if(Schematic.getSchemFromDB(files[i].getName(), player.getUniqueId()) == null) { + if(Schematic.getSchemFromDB(files[i].getName().substring(0, files[i].getName().lastIndexOf(".")), player.getUniqueId()) == null) { String fileName = files[i].getName(); Schematic schematic = new Schematic(fileName.substring(0, fileName.lastIndexOf(".")), player.getUniqueId(), "", SchematicType.normal); }