Advertisement
polarnyy

Untitled

Apr 30th, 2022
737
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. public static String findServerName() {
  2.  
  3.         DbRow result = null;
  4.         try {
  5.             result = DB.getFirstRow("SELECT server_name AS name FROM UHC WHERE arena_status = ? ORDER by players_online DESC LIMIT 1", "READY");
  6.         } catch (SQLException e) {
  7.             System.out.println(e.toString());
  8.         }
  9.  
  10.         return result == null ? null : result.getString("name");
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement