Compare commits

..

No commits in common. "d3ad3ad605e53ddb2a41d78ae70e280048c636dc" and "68be779b75fba58ef96b68af126dba5b76ce6806" have entirely different histories.

2 changed files with 7 additions and 17 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.craftaro</groupId>
<artifactId>UltimateModeration</artifactId>
<version>3.0.2</version>
<version>3.0.1</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,22 +502,12 @@ public class DataHelper {
Location location = ticket.getLocation();
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.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());
statement.setInt(11, ticket.getId());
statement.executeUpdate();
} catch (Exception ex) {