Compare commits
2 Commits
68be779b75
...
d3ad3ad605
Author | SHA1 | Date |
---|---|---|
ceze88 | d3ad3ad605 | |
ceze88 | 642604f324 |
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue