Long DiscordId #242
@ -27,7 +27,6 @@ import net.dv8tion.jda.api.entities.Emoji;
|
||||
import net.dv8tion.jda.api.entities.Member;
|
||||
import net.dv8tion.jda.api.interactions.components.ActionRow;
|
||||
import net.dv8tion.jda.api.interactions.components.Button;
|
||||
import net.md_5.bungee.api.scheduler.ScheduledTask;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
@ -94,11 +94,15 @@ public class SteamwarUser {
|
||||
team = rs.getInt("Team");
|
||||
leader = rs.getBoolean("Leader");
|
||||
discordId = rs.getLong("DiscordId");
|
||||
Chaoscaot markierte diese Unterhaltung als gelöst
|
||||
if(rs.wasNull()) {
|
||||
discordId = null;
|
||||
}
|
||||
usersById.put(id, this);
|
||||
usersByName.put(userName.toLowerCase(), this);
|
||||
usersByUUID.put(uuid, this);
|
||||
if(discordId != null)
|
||||
if(discordId != null) {
|
||||
usersByDiscord.put(discordId, this);
|
||||
}
|
||||
punishments = Punishment.getPunishmentsOfPlayer(id);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Inkorrekte "null" Behandlung. Gibt die Möglichkeit, erst mit z.B. getObject oder getString auf null zu prüfen, oder hinterher mit rs.wasNull()