Fix java 8
Dieser Commit ist enthalten in:
Ursprung
5c02275b4e
Commit
2f8a2124d5
@ -47,8 +47,8 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>9</source>
|
||||
<target>9</target>
|
||||
<source>8</source>
|
||||
<target>8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
@ -77,7 +77,8 @@ public class ExternalUpDownload {
|
||||
name.append(schemName[i].replace("/", "-"));
|
||||
}
|
||||
Schematic testSchem = Schematic.getSchemFromDB(name.toString(), player.getUniqueId());
|
||||
byte[] schemData = zipInputStream.readAllBytes();
|
||||
byte[] schemData = new byte[zipInputStream.available()];
|
||||
zipInputStream.read(schemData);
|
||||
if(testSchem != null) {
|
||||
int i = 1;
|
||||
while (true) {
|
||||
@ -92,7 +93,7 @@ public class ExternalUpDownload {
|
||||
Schematic schem = Schematic.getSchemFromDB(name.toString(), player.getUniqueId());
|
||||
schem.saveFromBytes(schemData, schemName[schemName.length - 1].equals("schem"));
|
||||
zipInputStream.closeEntry();
|
||||
player.sendMessage(SchematicSystem.PREFIX + "§6Die Schematic §e" + schematic.getName() + " §6wurde von WarGearWorld.net als §e" + name.toString() + " §6herruntergeladen!");
|
||||
player.sendMessage(SchematicSystem.PREFIX + "§6Die Schematic §e" + schematic.getName() + " §6wurde von WarGearWorld.net als §e" + name.toString() + " §6heruntergeladen!");
|
||||
}
|
||||
player.sendMessage(SchematicSystem.PREFIX + "§aAlle deine Schematics wurden von §6W§7ar§6G§7ear§6W§7orld.net §aauf §eSteam§8War §aHochgeladen!");
|
||||
zipInputStream.close();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren