Compare commits

...

2 Commits

Author SHA1 Message Date
ceze88 d3ad3ad605 Release v3.0.2 2024-04-18 21:46:16 +02:00
ceze88 642604f324 Fix NPE 2024-04-18 21:44:17 +02:00
2 changed files with 17 additions and 7 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.craftaro</groupId>
<artifactId>UltimateModeration</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
<name>UltimateModeration</name>
<description>Take complete control over your server with punishment templates via a simplified yet powerful moderation system</description>

View File

@ -502,12 +502,22 @@ public class DataHelper {
Location location = ticket.getLocation();
statement.setString(5, location.getWorld().getName());
statement.setDouble(6, location.getX());
statement.setDouble(7, location.getY());
statement.setDouble(8, location.getZ());
statement.setFloat(9, location.getPitch());
statement.setFloat(10, location.getYaw());
if (location != null) {
statement.setString(5, location.getWorld().getName());
statement.setDouble(6, location.getX());
statement.setDouble(7, location.getY());
statement.setDouble(8, location.getZ());
statement.setFloat(9, location.getPitch());
statement.setFloat(10, location.getYaw());
} else {
statement.setString(5, "");
statement.setDouble(6, 0);
statement.setDouble(7, 0);
statement.setDouble(8, 0);
statement.setFloat(9, 0);
statement.setFloat(10, 0);
}
statement.setInt(11, ticket.getId());
statement.executeUpdate();
} catch (Exception ex) {