13
0
Signed-off-by: yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Yaruma3341 2019-04-13 18:06:33 +02:00 committet von yaruma3341
Ursprung f922fdfd14
Commit 8ac792f0b8

Datei anzeigen

@ -21,7 +21,7 @@ public class PlayerJoinListener implements Listener {
if(files == null || files.length == 0) return; if(files == null || files.length == 0) return;
for(int i = 0; i < files.length; i++) { 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(); String fileName = files[i].getName();
Schematic schematic = new Schematic(fileName.substring(0, fileName.lastIndexOf(".")), player.getUniqueId(), "", SchematicType.normal); Schematic schematic = new Schematic(fileName.substring(0, fileName.lastIndexOf(".")), player.getUniqueId(), "", SchematicType.normal);
} }