Skip to content

Commit 454c868

Browse files
committed
Update 2.4.3
1 parent 5d84292 commit 454c868

File tree

9 files changed

+30
-34
lines changed

9 files changed

+30
-34
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.alessiodp.parties</groupId>
66
<artifactId>Parties</artifactId>
7-
<version>2.4.2</version>
7+
<version>2.4.3</version>
88
</parent>
99

1010
<artifactId>parties-api</artifactId>

bukkit/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.alessiodp.parties</groupId>
77
<artifactId>Parties</artifactId>
8-
<version>2.4.2</version>
8+
<version>2.4.3</version>
99
</parent>
1010

1111
<artifactId>parties-bukkit</artifactId>

bungee/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>com.alessiodp.parties</groupId>
55
<artifactId>Parties</artifactId>
6-
<version>2.4.2</version>
6+
<version>2.4.3</version>
77
</parent>
88

99
<artifactId>parties-bungee</artifactId>

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<artifactId>Parties</artifactId>
99
<groupId>com.alessiodp.parties</groupId>
10-
<version>2.4.2</version>
10+
<version>2.4.3</version>
1111
</parent>
1212

1313
<artifactId>parties-common</artifactId>

common/src/main/java/com/alessiodp/parties/common/storage/dispatchers/FileDispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public void insertLog(LogLine line) {
290290

291291
Files.write(filePath, line.getFormattedMessage().getBytes(), StandardOpenOption.APPEND);
292292
} catch (IOException ex) {
293-
LoggerManager.printError(LoggerManager.formatErrorCallTrace(Constants.DEBUG_FILE_ERROR, ex));
293+
ex.printStackTrace();
294294
}
295295
}
296296

common/src/main/java/com/alessiodp/parties/common/storage/dispatchers/SQLDispatcher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,13 +513,13 @@ public void insertLog(LogLine line) {
513513
preStatement.setTimestamp(1, new Timestamp(line.getDate().getTime()));
514514
preStatement.setInt(2, Integer.valueOf(line.getLevel()));
515515
preStatement.setString(3, line.getPosition());
516-
preStatement.setString(3, line.getMessage());
516+
preStatement.setString(4, line.getMessage());
517517

518518
preStatement.executeUpdate();
519519
}
520520
}
521521
} catch (SQLException ex) {
522-
LoggerManager.printError(LoggerManager.formatErrorCallTrace(Constants.DEBUG_SQL_ERROR, ex));
522+
ex.printStackTrace();
523523
}
524524
}
525525

common/src/main/resources/schemas/sqlite.sql

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,40 @@
22

33
/*START_PARTIES*/
44
CREATE TABLE '{table_parties}' (
5-
'name' VARCHAR({varcharsize}) NOT NULL,
6-
'leader' VARCHAR({varcharsize}) NOT NULL,
5+
'name' VARCHAR({varcharsize}) NOT NULL PRIMARY KEY,
6+
'leader' VARCHAR({varcharsize}) NOT NULL,
77
'description' VARCHAR({varcharsize}) DEFAULT '',
8-
'motd' VARCHAR({varcharsize}) DEFAULT '',
9-
'color' VARCHAR({varcharsize}) DEFAULT '',
10-
'kills' INT DEFAULT 0,
8+
'motd' VARCHAR({varcharsize}) DEFAULT '',
9+
'color' VARCHAR({varcharsize}) DEFAULT '',
10+
'kills' INTEGER DEFAULT 0,
1111
'password' VARCHAR({varcharsize}) DEFAULT '',
12-
'home' VARCHAR({varcharsize}) DEFAULT '',
13-
'protection' INT DEFAULT 0 NOT NULL,
14-
'experience' REAL DEFAULT 0,
15-
PRIMARY KEY ('name'));
12+
'home' VARCHAR({varcharsize}) DEFAULT '',
13+
'protection' INTEGER DEFAULT 0 NOT NULL,
14+
'experience' REAL DEFAULT 0);
1615
/*END_PARTIES*/
1716

1817
/*START_PLAYERS*/
1918
CREATE TABLE '{table_players}' (
20-
'uuid' VARCHAR({varcharsize}) NOT NULL,
21-
'party' VARCHAR({varcharsize}) NOT NULL,
22-
'rank' INT DEFAULT 0,
23-
'name' VARCHAR({varcharsize}) DEFAULT '',
24-
'timestamp' INT,
25-
'spy' INT DEFAULT 0 NOT NULL,
26-
`mute` INT DEFAULT 0 NOT NULL,
27-
PRIMARY KEY ('uuid'));
19+
'uuid' VARCHAR({varcharsize}) NOT NULL PRIMARY KEY,
20+
'party' VARCHAR({varcharsize}) NOT NULL,
21+
'rank' INTEGER DEFAULT 0,
22+
'name' VARCHAR({varcharsize}) DEFAULT '',
23+
'timestamp' INTEGER,
24+
'spy' INTEGER DEFAULT 0 NOT NULL,
25+
`mute` INTEGER DEFAULT 0 NOT NULL);
2826
/*END_PLAYERS*/
2927

3028
/*START_LOG*/
3129
CREATE TABLE '{table_log}' (
32-
'id' INT NOT NULL,
33-
'date' DATETIME,
34-
'level' TINYINT,
30+
'id' INTEGER PRIMARY KEY AUTOINCREMENT,
31+
'date' DATETIME,
32+
'level' TINYINT,
3533
'position' VARCHAR({varcharsize}),
36-
'message' VARCHAR({varcharsize}),
37-
PRIMARY KEY ('id'));
34+
'message' VARCHAR({varcharsize}));
3835
/*END_LOG*/
3936

4037
/*START_VERSIONS*/
4138
CREATE TABLE '{table_versions}' (
42-
'name' VARCHAR({varcharsize}) NOT NULL,
43-
'version' INT NOT NULL,
44-
PRIMARY KEY ('name'));
39+
'name' VARCHAR({varcharsize}) NOT NULL PRIMARY KEY,
40+
'version' INTEGER NOT NULL);
4541
/*END_VERSIONS*/

output/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>Parties</artifactId>
77
<groupId>com.alessiodp.parties</groupId>
8-
<version>2.4.2</version>
8+
<version>2.4.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>com.alessiodp.parties</groupId>
55
<artifactId>Parties</artifactId>
6-
<version>2.4.2</version>
6+
<version>2.4.3</version>
77
<packaging>pom</packaging>
88

99
<name>Parties</name>

0 commit comments

Comments
 (0)