Skip to content

Commit

Permalink
Fixed invalid character set exception
Browse files Browse the repository at this point in the history
  • Loading branch information
LordTuxn committed Sep 28, 2021
1 parent 16b14c4 commit 50ac9ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void onPlayerJoinEvent(PlayerJoinEvent event) {

// Check if player even exists in database.
try (ResultSet rs = DatabaseConnection.createStatement("SELECT * FROM plotsystem_builders WHERE uuid = ?")
.setValue(event.getPlayer().getUniqueId()).executeQuery()) {
.setValue(event.getPlayer().getUniqueId().toString()).executeQuery()) {

if(!rs.first()) {
DatabaseConnection.createStatement("INSERT INTO plotsystem_builders (uuid, name) VALUES (?, ?)")
Expand Down

0 comments on commit 50ac9ee

Please sign in to comment.