Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (commandLabel.equalsIgnoreCase("bclist")) {
- if (CanUnlock((Player) sender)) {
- String query6 = "SELECT * FROM unlock WHERE unlock = '0';";
- ResultSet result = null;
- result = manageSQLite.sqlQuery(query6);
- try {
- if (result != null && result.next()) {
- int id = result.getInt("id");
- String reqname = result.getString("guestname");
- String reqtime = result.getString("reqtime");
- String pass = result.getString("password");
- Boolean unlock = result.getBoolean("unlock");
- player.sendMessage(ChatColor.GREEN + logPrefix + "ID: " + ChatColor.RED + id + ChatColor.GREEN + " Gast: " + ChatColor.RED + reqname + ChatColor.GREEN + " Zeit: " + ChatColor.RED + reqtime + ChatColor.GREEN + " Passwort: " + ChatColor.RED + pass);
- } else {
- player.sendMessage(ChatColor.RED + logPrefix + "Keine Gäste zum freischalten");
- }
- } catch (SQLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement