Skip to content

Commit

Permalink
Update 2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioDP committed Oct 3, 2018
1 parent 5d84292 commit 454c868
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 34 deletions.
2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.alessiodp.parties</groupId>
<artifactId>Parties</artifactId>
<version>2.4.2</version>
<version>2.4.3</version>
</parent>

<artifactId>parties-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bukkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.alessiodp.parties</groupId>
<artifactId>Parties</artifactId>
<version>2.4.2</version>
<version>2.4.3</version>
</parent>

<artifactId>parties-bukkit</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bungee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.alessiodp.parties</groupId>
<artifactId>Parties</artifactId>
<version>2.4.2</version>
<version>2.4.3</version>
</parent>

<artifactId>parties-bungee</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>Parties</artifactId>
<groupId>com.alessiodp.parties</groupId>
<version>2.4.2</version>
<version>2.4.3</version>
</parent>

<artifactId>parties-common</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public void insertLog(LogLine line) {

Files.write(filePath, line.getFormattedMessage().getBytes(), StandardOpenOption.APPEND);
} catch (IOException ex) {
LoggerManager.printError(LoggerManager.formatErrorCallTrace(Constants.DEBUG_FILE_ERROR, ex));
ex.printStackTrace();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,13 @@ public void insertLog(LogLine line) {
preStatement.setTimestamp(1, new Timestamp(line.getDate().getTime()));
preStatement.setInt(2, Integer.valueOf(line.getLevel()));
preStatement.setString(3, line.getPosition());
preStatement.setString(3, line.getMessage());
preStatement.setString(4, line.getMessage());

preStatement.executeUpdate();
}
}
} catch (SQLException ex) {
LoggerManager.printError(LoggerManager.formatErrorCallTrace(Constants.DEBUG_SQL_ERROR, ex));
ex.printStackTrace();
}
}

Expand Down
46 changes: 21 additions & 25 deletions common/src/main/resources/schemas/sqlite.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,40 @@

/*START_PARTIES*/
CREATE TABLE '{table_parties}' (
'name' VARCHAR({varcharsize}) NOT NULL,
'leader' VARCHAR({varcharsize}) NOT NULL,
'name' VARCHAR({varcharsize}) NOT NULL PRIMARY KEY,
'leader' VARCHAR({varcharsize}) NOT NULL,
'description' VARCHAR({varcharsize}) DEFAULT '',
'motd' VARCHAR({varcharsize}) DEFAULT '',
'color' VARCHAR({varcharsize}) DEFAULT '',
'kills' INT DEFAULT 0,
'motd' VARCHAR({varcharsize}) DEFAULT '',
'color' VARCHAR({varcharsize}) DEFAULT '',
'kills' INTEGER DEFAULT 0,
'password' VARCHAR({varcharsize}) DEFAULT '',
'home' VARCHAR({varcharsize}) DEFAULT '',
'protection' INT DEFAULT 0 NOT NULL,
'experience' REAL DEFAULT 0,
PRIMARY KEY ('name'));
'home' VARCHAR({varcharsize}) DEFAULT '',
'protection' INTEGER DEFAULT 0 NOT NULL,
'experience' REAL DEFAULT 0);
/*END_PARTIES*/

/*START_PLAYERS*/
CREATE TABLE '{table_players}' (
'uuid' VARCHAR({varcharsize}) NOT NULL,
'party' VARCHAR({varcharsize}) NOT NULL,
'rank' INT DEFAULT 0,
'name' VARCHAR({varcharsize}) DEFAULT '',
'timestamp' INT,
'spy' INT DEFAULT 0 NOT NULL,
`mute` INT DEFAULT 0 NOT NULL,
PRIMARY KEY ('uuid'));
'uuid' VARCHAR({varcharsize}) NOT NULL PRIMARY KEY,
'party' VARCHAR({varcharsize}) NOT NULL,
'rank' INTEGER DEFAULT 0,
'name' VARCHAR({varcharsize}) DEFAULT '',
'timestamp' INTEGER,
'spy' INTEGER DEFAULT 0 NOT NULL,
`mute` INTEGER DEFAULT 0 NOT NULL);
/*END_PLAYERS*/

/*START_LOG*/
CREATE TABLE '{table_log}' (
'id' INT NOT NULL,
'date' DATETIME,
'level' TINYINT,
'id' INTEGER PRIMARY KEY AUTOINCREMENT,
'date' DATETIME,
'level' TINYINT,
'position' VARCHAR({varcharsize}),
'message' VARCHAR({varcharsize}),
PRIMARY KEY ('id'));
'message' VARCHAR({varcharsize}));
/*END_LOG*/

/*START_VERSIONS*/
CREATE TABLE '{table_versions}' (
'name' VARCHAR({varcharsize}) NOT NULL,
'version' INT NOT NULL,
PRIMARY KEY ('name'));
'name' VARCHAR({varcharsize}) NOT NULL PRIMARY KEY,
'version' INTEGER NOT NULL);
/*END_VERSIONS*/
2 changes: 1 addition & 1 deletion output/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>Parties</artifactId>
<groupId>com.alessiodp.parties</groupId>
<version>2.4.2</version>
<version>2.4.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.alessiodp.parties</groupId>
<artifactId>Parties</artifactId>
<version>2.4.2</version>
<version>2.4.3</version>
<packaging>pom</packaging>

<name>Parties</name>
Expand Down

0 comments on commit 454c868

Please sign in to comment.