Skip to content

Commit

Permalink
✏ Fixed visual bug where the prefix would be displayed twice on startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaFeLP committed Apr 1, 2021
1 parent dbd91ca commit abe54db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/github/mafelp/discord/DiscordMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static void init() {

// TODO Change: make this function a thread / use bukkit scheduler
// Log that the instance is being started
Logging.info(prefix + ChatColor.DARK_GRAY + "Starting Discord Instance...");
Logging.info(ChatColor.DARK_GRAY + "Starting Discord Instance...");
// try to log the instance in and set it in the settings
try {
// Create the API
Expand All @@ -49,7 +49,7 @@ public static void init() {
} catch (IllegalStateException | CompletionException exception) {
// If the API creation fails,
// log an error to the console.
Logging.logException(exception, prefix + ChatColor.RED +
Logging.logException(exception, ChatColor.RED +
"An error occurred whilst trying to create the discord instance! Error: " + exception.getMessage());
}
}
Expand Down

0 comments on commit abe54db

Please sign in to comment.