diff --git a/CarbonChat-Common/src/main/java/net/draycia/carbon/common/users/MySQLUserService.java b/CarbonChat-Common/src/main/java/net/draycia/carbon/common/users/MySQLUserService.java index 58465261..5310d509 100644 --- a/CarbonChat-Common/src/main/java/net/draycia/carbon/common/users/MySQLUserService.java +++ b/CarbonChat-Common/src/main/java/net/draycia/carbon/common/users/MySQLUserService.java @@ -186,11 +186,11 @@ public class MySQLUserService imple final List channelSettings = this.database.getResults("SELECT * from sc_channel_settings WHERE uuid = ?;", uuid.toString()); final List ignoredUsers = this.database.getResults("SELECT * from sc_ignored_users WHERE uuid = ?;", uuid.toString()); - final ChatChannel channel = this.carbonChat.channelRegistry().getOrDefault(users.getString("channel")); + final ChatChannel channel = this.carbonChat.channelRegistry().getOrDefault(users.get("channel")); user.selectedChannel(channel, true); - final String nickname = users.getString("nickname"); + final String nickname = users.get("nickname"); if (nickname != null) { user.nickname(nickname, true); @@ -201,9 +201,9 @@ public class MySQLUserService imple user.spyingWhispers(users.get("spyingwhispers"), true); user.customChatColor(users.get("customchatcolor"), true); - final String whisperPingKey = users.getString("whisperpingkey"); - final Float whisperPingVolume = users.getFloat("whisperpingvolume"); - final Float whisperPingPitch = users.getFloat("whisperpingpitch"); + final String whisperPingKey = users.get("whisperpingkey"); + final Float whisperPingVolume = users.get("whisperpingvolume"); + final Float whisperPingPitch = users.get("whisperpingpitch"); final Sound whisperSound; @@ -213,9 +213,9 @@ public class MySQLUserService imple whisperSound = null; } - final String channelPingKey = users.getString("channelpingkey"); - final Float channelPingVolume = users.getFloat("channelpingvolume"); - final Float channelPingPitch = users.getFloat("channelpingpitch"); + final String channelPingKey = users.get("channelpingkey"); + final Float channelPingVolume = users.get("channelpingvolume"); + final Float channelPingPitch = users.get("channelpingpitch"); final Sound channelSound; @@ -228,7 +228,7 @@ public class MySQLUserService imple user.pingOptions(new PlayerUser.PingOptions(whisperSound, channelSound)); for (final DbRow channelSetting : channelSettings) { - final ChatChannel chatChannel = this.carbonChat.channelRegistry().get(channelSetting.getString("channel")); + final ChatChannel chatChannel = this.carbonChat.channelRegistry().get(channelSetting.get("channel")); if (chatChannel != null) { final UserChannelSettings settings = user.channelSettings(chatChannel); @@ -236,7 +236,7 @@ public class MySQLUserService imple settings.spying(channelSetting.get("spying"), true); settings.ignoring(channelSetting.get("ignored"), true); - final String color = channelSetting.getString("color"); + final String color = channelSetting.get("color"); if (color != null) { settings.color(TextColor.fromHexString(color), true); @@ -245,7 +245,7 @@ public class MySQLUserService imple } for (final DbRow ignoredUser : ignoredUsers) { - user.ignoringUser(UUID.fromString(ignoredUser.getString("user")), true, true); + user.ignoringUser(UUID.fromString(ignoredUser.get("user")), true, true); } } catch (final SQLException exception) { exception.printStackTrace();