mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Fix bans count
This commit is contained in:
parent
10f860dc0c
commit
46d431e190
@ -34,7 +34,7 @@ public class ModToolUserInfoComposer extends MessageComposer {
|
|||||||
statement.setInt(1, this.set.getInt("user_id"));
|
statement.setInt(1, this.set.getInt("user_id"));
|
||||||
try (ResultSet set = statement.executeQuery()) {
|
try (ResultSet set = statement.executeQuery()) {
|
||||||
if (set.next()) {
|
if (set.next()) {
|
||||||
totalBans = set.getInt("totalBans");
|
totalBans = set.getInt("amount");
|
||||||
}
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
LOGGER.error("Caught SQL exception", e);
|
LOGGER.error("Caught SQL exception", e);
|
||||||
@ -52,12 +52,12 @@ public class ModToolUserInfoComposer extends MessageComposer {
|
|||||||
this.response.appendInt(this.set.getInt("cfh_send"));
|
this.response.appendInt(this.set.getInt("cfh_send"));
|
||||||
this.response.appendInt(this.set.getInt("cfh_abusive"));
|
this.response.appendInt(this.set.getInt("cfh_abusive"));
|
||||||
this.response.appendInt(this.set.getInt("cfh_warnings"));
|
this.response.appendInt(this.set.getInt("cfh_warnings"));
|
||||||
this.response.appendInt(this.set.getInt("cfh_bans"));
|
this.response.appendInt(totalBans); // Number of bans
|
||||||
this.response.appendInt(this.set.getInt("tradelock_amount"));
|
this.response.appendInt(this.set.getInt("tradelock_amount"));
|
||||||
this.response.appendString(""); //Trading lock expiry timestamp
|
this.response.appendString(""); //Trading lock expiry timestamp
|
||||||
this.response.appendString(""); //Last Purchase Timestamp
|
this.response.appendString(""); //Last Purchase Timestamp
|
||||||
this.response.appendInt(this.set.getInt("user_id")); //Personal Identification #
|
this.response.appendInt(this.set.getInt("user_id")); //Personal Identification #
|
||||||
this.response.appendInt(totalBans); //Number of bans
|
this.response.appendInt(0); // Number of account bans
|
||||||
this.response.appendString(this.set.getString("mail"));
|
this.response.appendString(this.set.getString("mail"));
|
||||||
this.response.appendString("Rank (" + this.set.getInt("rank_id") + "): " + this.set.getString("rank_name")); //user_class_txt
|
this.response.appendString("Rank (" + this.set.getInt("rank_id") + "): " + this.set.getString("rank_name")); //user_class_txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user