Skip to content

Commit

Permalink
Fix spacing between update notification and prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed Jun 15, 2024
1 parent 774ae54 commit f1d1f9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/main/java/net/jeqo/bloons/commands/CommandReload.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public boolean execute(CommandSender sender, String[] args) {
if (bloonsConfigReloadEvent.isCancelled()) return false;

Bloons.getInstance().reloadConfig();
Bloons.getInstance().getConfig().options().copyDefaults();
Bloons.getInstance().saveDefaultConfig();

Component configReloadedMessage = messageTranslations.getSerializedString(messageTranslations.getMessage("prefix"), messageTranslations.getMessage("config-reloaded"));
sender.sendMessage(configReloadedMessage);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/jeqo/bloons/logger/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static void logToPlayer(LoggingLevel level, Player player, String message
*/
public static void logToPlayer(Player player, String message) {
MessageTranslations messageTranslations = new MessageTranslations(Bloons.getInstance());
Component component = messageTranslations.getSerializedString(messageTranslations.getMessage("prefix") + " " + message);
Component component = messageTranslations.getSerializedString(messageTranslations.getMessage("prefix") + message);
player.sendMessage(component);
}

Expand Down

0 comments on commit f1d1f9d

Please sign in to comment.