From 0232fafd099ca5fdc9373a96226ef7f6fd34f432 Mon Sep 17 00:00:00 2001 From: Cow Date: Tue, 15 Feb 2022 16:12:02 -0800 Subject: [PATCH] removed debug messages --- .../github/punishmentsx/database/sequel/SQL.java | 16 ++++------------ .../punishmentsx/listeners/JoinListener.java | 1 - src/main/resources/config.yml | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/main/java/io/github/punishmentsx/database/sequel/SQL.java b/src/main/java/io/github/punishmentsx/database/sequel/SQL.java index 550b98a..cbbf3dc 100644 --- a/src/main/java/io/github/punishmentsx/database/sequel/SQL.java +++ b/src/main/java/io/github/punishmentsx/database/sequel/SQL.java @@ -43,10 +43,7 @@ public Profile loadProfile(boolean async, String name, boolean store, MongoDeser rs.beforeFirst(); rs.next(); } else { - if (!rs.next()) { - plugin.getLogger().log(Level.WARNING, "Rs doesn't have next"); - return null; - } + if (!rs.next()) return null; } UUID uuid = UUID.fromString(rs.getString("id")); @@ -89,10 +86,8 @@ public Profile loadProfile(boolean async, UUID uuid, boolean store, MongoDeseria rs.beforeFirst(); rs.next(); } else { - if (!rs.next()) { - plugin.getLogger().log(Level.WARNING, "Rs doesn't have next"); - return null; - } + if (!rs.next()) return null; + } List punishments = new ArrayList<>(); @@ -164,10 +159,7 @@ public void loadPunishment(boolean async, UUID uuid, boolean store) { rs.beforeFirst(); rs.next(); } else { - if (!rs.next()) { - plugin.getLogger().log(Level.WARNING, "Rs doesn't have next"); - return; - } + if (!rs.next()) return; } UUID victim = UUID.fromString(rs.getString("victim")); diff --git a/src/main/java/io/github/punishmentsx/listeners/JoinListener.java b/src/main/java/io/github/punishmentsx/listeners/JoinListener.java index bf7cb3f..bb1aa4c 100644 --- a/src/main/java/io/github/punishmentsx/listeners/JoinListener.java +++ b/src/main/java/io/github/punishmentsx/listeners/JoinListener.java @@ -44,7 +44,6 @@ public void onPlayerPreLogin(AsyncPlayerPreLoginEvent event) { } else { profile = plugin.getProfileManager().find(uuid, true); if (profile == null) { - plugin.getLogger().log(Level.WARNING, "Created new profile!"); profile = plugin.getProfileManager().createProfile(uuid); } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index a6a2a4a..f0c2582 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -144,7 +144,7 @@ MESSAGES: - "&cVictim: &f%victimName%" - "&cReason: &f%reason%" - "&cPardoner: &f%issuerName%" - - "&cPardon Reason: %reason%" + - "&cPardon Reason: &f%pardonReason%" BLACKLIST_MESSAGE: - "&4Your account has been blacklisted" - "&fReason: %reason%"