geforkt von SteamWar/BungeeCore
Doing PR Stuff
Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
da9b5d82ab
Commit
98d06544ef
@ -18,6 +18,7 @@
|
||||
|
||||
package de.steamwar.bungeecore.bot.listeners;
|
||||
|
||||
import de.steamwar.bungeecore.BungeeCore;
|
||||
import de.steamwar.bungeecore.sql.SchematicNode;
|
||||
import de.steamwar.bungeecore.sql.SteamwarUser;
|
||||
import net.dv8tion.jda.api.entities.Message;
|
||||
@ -59,8 +60,8 @@ public class PrivateMessageListener extends BasicDiscordListener {
|
||||
node.saveFromStream(attachment.retrieveInputStream().get(), newFormat);
|
||||
event.getMessage().reply("`" + name + "` wurde erfolgreich hochgeladen").queue();
|
||||
} catch (Exception e) {
|
||||
event.getMessage().reply("`" + name + "` konnte nicht geholt werden, bitte versuche es später nochmal.").queue();
|
||||
throw new SecurityException("Could not Download", e);
|
||||
event.getMessage().reply("`" + name + "` konnte nicht geholt werden, bitte versuche es später nochmal oder wende dich an einen Developer").queue();
|
||||
BungeeCore.log("Could not Upload Schem \"" + name + "\" from User \"" + user.getUserName() + "\"" + e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -470,12 +470,6 @@ public class SchematicNode {
|
||||
return node.getId() == id;
|
||||
}
|
||||
|
||||
public void saveFromBytes(byte[] bytes, boolean newFormat) {
|
||||
if(isDir)
|
||||
throw new SecurityException("Node is Directory");
|
||||
updateDatabase(new ByteArrayInputStream(bytes), newFormat);
|
||||
}
|
||||
|
||||
public void saveFromStream(InputStream stream, boolean newFormat) {
|
||||
if(isDir)
|
||||
throw new SecurityException("Node is Directory");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren