Add SaveFromBytes
Dieser Commit ist enthalten in:
Ursprung
40c2462d5b
Commit
c65746547f
@ -212,11 +212,11 @@ public class Schematic {
|
||||
}
|
||||
}
|
||||
|
||||
public void saveOldFormatFromPlayer(Player player) throws NoClipboardException {
|
||||
public void saveOldFormatFromPlayer(Player player) throws IOException, NoClipboardException {
|
||||
saveFromPlayer(player, false);
|
||||
}
|
||||
|
||||
public void saveFromPlayer(Player player) throws NoClipboardException {
|
||||
public void saveFromPlayer(Player player) throws IOException, NoClipboardException {
|
||||
saveFromPlayer(player, true);
|
||||
}
|
||||
|
||||
@ -225,12 +225,12 @@ public class Schematic {
|
||||
try {
|
||||
blob.setBytes(1, bytes);
|
||||
updateDatabase(blob, newFormat);
|
||||
} catch (SQLException throwables) {
|
||||
throwables.printStackTrace();
|
||||
} catch (SQLException e) {
|
||||
throw new SecurityException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private void saveFromPlayer(Player player, boolean newFormat) throws NoClipboardException {
|
||||
private void saveFromPlayer(Player player, boolean newFormat) throws IOException, NoClipboardException {
|
||||
Blob blob = SQL.blob();
|
||||
VersionedRunnable.call(new VersionedRunnable(() -> {
|
||||
try {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren