Guest User

Untitled

a guest
Jan 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1.                         {
  2.                             connection = L2DatabaseFactory.getInstance().getConnection();
  3.                             PreparedStatement statement = connection.prepareStatement("UPDATE `characters` SET `good`='1', `factionId`='1' WHERE `charId`='?'");
  4.                             statement.setInt(1, getObjectId());
  5.                             statement.execute();
  6.                             statement.close();
  7.                             connection.close();
  8.                            
  9.                             connection = L2DatabaseFactory.getInstance().getConnection();
  10.                             PreparedStatement statement2 = connection.prepareStatement("UPDATE `characters` SET `factionId`='1' WHERE `charId`='?'");
  11.                             statement2.setInt(1, getObjectId());
  12.                             statement2.execute();
  13.                             statement2.close();
  14.                             connection.close();
  15.                         }
Add Comment
Please, Sign In to add comment