Skip to content

Commit

Permalink
1.0.5+b5
Browse files Browse the repository at this point in the history
  • Loading branch information
Flxma committed Jan 15, 2020
1 parent f71675c commit 25b69a0
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.flexusma</groupId>
<artifactId>JDA-CMDH</artifactId>
<version>1.0.5+b2</version>
<version>1.0.5+b5</version>

<build>
<plugins>
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/de/flexusma/jdacmdh/database/Database.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,23 +147,25 @@ public static CommandPreferences prefFromDB(Connection connection,
public static CommandPreferences initPref(JDA jda, String id){
try {
return Database.prefFromDB(Database.getCon(), id);
}catch (SQLException e) {
Logger.log(LogType.WARN, "SQL Error: " + e.getErrorCode() + " " + e.getMessage());

}catch (Exception e){
Logger.log(LogType.WARN,e.getMessage());
try {
prefToDB(Database.getCon(),id,new CommandPreferences());
} catch (SQLException ex) {
Logger.log(LogType.WARN,ex.getMessage());
}
return new CommandPreferences();
}
return new CommandPreferences();
}

public static void savePref(JDA jda, String id, CommandPreferences pref){

try {
prefToDB(Database.getCon(),id,pref);
} catch (SQLException e) {
Logger.log(LogType.WARN,e.getMessage());
Logger.log(LogType.WARN, "SQL Error: "+e.getErrorCode()+" "+e.getMessage());
try {
uprefToDB(Database.getCon(),id,pref);
} catch (SQLException e1) {
Expand Down
Binary file added target/JDA-CMDH-1.0.5+b3.jar
Binary file not shown.
Binary file added target/JDA-CMDH-1.0.5+b4-shaded.jar
Binary file not shown.
Binary file added target/JDA-CMDH-1.0.5+b4.jar
Binary file not shown.
Binary file added target/JDA-CMDH-1.0.5+b5.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Created by Apache Maven 3.6.1
groupId=de.flexusma
artifactId=JDA-CMDH
version=1.0.5+b2
version=1.0.5+b5
Binary file added target/original-JDA-CMDH-1.0.5+b3.jar
Binary file not shown.
Binary file added target/original-JDA-CMDH-1.0.5+b4.jar
Binary file not shown.
Binary file added target/original-JDA-CMDH-1.0.5+b5.jar
Binary file not shown.

0 comments on commit 25b69a0

Please sign in to comment.