ResultSetuRs=s.executeQuery("SELECT reports FROM users WHERE id = "+SID+";");
if(uRs.next()){
reports=uRs.getString(1);
if(reports.split("\n").length>=5){
returnnewCommandResult(CommandResultType.FAILURE,"The user is already banned from the bot.");
}
}
PreparedStatementset=con.prepareStatement("INSERT INTO users(id, reports) VALUES (?, \"0\n0\n0\n0\n0\n\") ON CONFLICT(id) DO UPDATE SET reports = \"0\n0\n0\n0\n0\n\"");
set.setString(1,SID);
if(set.executeUpdate()!=0){
channel.sendMessage("You have successfully banned <@!"+SID+"> from the bot.").queue();