Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void addServer(Integer value) {
- try {
- PreparedStatement server = con.prepareStatement("UPDATE tablename SET online=? WHERE players=?;");
- server.setInt(1, value);
- coinsUpdate.executeUpdate();
- coinsUpdate.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement