Skip to content

Commit

Permalink
removed debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Cow authored and Cow committed Feb 16, 2022
1 parent 4da7d2b commit 0232faf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
16 changes: 4 additions & 12 deletions src/main/java/io/github/punishmentsx/database/sequel/SQL.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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<UUID> punishments = new ArrayList<>();
Expand Down Expand Up @@ -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"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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%"
Expand Down

0 comments on commit 0232faf

Please sign in to comment.