mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-10 14:33:08 +00:00
Refactor
This commit is contained in:
parent
fbaca34218
commit
0d75622196
23 changed files with 73 additions and 73 deletions
|
@ -263,7 +263,7 @@ public class SQLManager implements AbstractDB {
|
|||
stmt.setInt((i * 4) + 1, plot.id.x);
|
||||
stmt.setInt((i * 4) + 2, plot.id.y);
|
||||
try {
|
||||
stmt.setString((i * 4) + 3, plot.owner_.toString());
|
||||
stmt.setString((i * 4) + 3, plot.owner.toString());
|
||||
} catch (final Exception e) {
|
||||
stmt.setString((i * 4) + 3, DBFunc.everyone.toString());
|
||||
}
|
||||
|
@ -299,7 +299,7 @@ public class SQLManager implements AbstractDB {
|
|||
stmt.setInt((i * 6) + 2, plot.id.x);
|
||||
stmt.setInt((i * 6) + 3, plot.id.y);
|
||||
try {
|
||||
stmt.setString((i * 6) + 4, plot.owner_.toString());
|
||||
stmt.setString((i * 6) + 4, plot.owner.toString());
|
||||
} catch (final Exception e1) {
|
||||
stmt.setString((i * 6) + 4, DBFunc.everyone.toString());
|
||||
}
|
||||
|
@ -344,7 +344,7 @@ public class SQLManager implements AbstractDB {
|
|||
stmt = SQLManager.this.connection.prepareStatement(SQLManager.this.CREATE_PLOT);
|
||||
stmt.setInt(1, plot.id.x);
|
||||
stmt.setInt(2, plot.id.y);
|
||||
stmt.setString(3, plot.owner_.toString());
|
||||
stmt.setString(3, plot.owner.toString());
|
||||
stmt.setString(4, plot.world);
|
||||
stmt.executeUpdate();
|
||||
stmt.close();
|
||||
|
@ -366,7 +366,7 @@ public class SQLManager implements AbstractDB {
|
|||
stmt = SQLManager.this.connection.prepareStatement(SQLManager.this.CREATE_PLOT);
|
||||
stmt.setInt(1, plot.id.x);
|
||||
stmt.setInt(2, plot.id.y);
|
||||
stmt.setString(3, plot.owner_.toString());
|
||||
stmt.setString(3, plot.owner.toString());
|
||||
stmt.setString(4, plot.world);
|
||||
stmt.executeUpdate();
|
||||
stmt.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue