Improved logging for debug

This commit is contained in:
Teriuihi 2022-05-30 05:59:15 +02:00
parent 25a9eb1f58
commit 24ac456c17
2 changed files with 4 additions and 4 deletions

View File

@ -60,10 +60,10 @@ public class PluginMessageListener implements org.bukkit.plugin.messaging.Plugin
public void run() {
EconUser user = Queries.getEconUser(uuid);
if (Config.DEBUG)
Logger.info("Loaded EconUser % with % points",
Logger.info("Loaded EconUser % with the following points:\n%",
uuid.toString(), user.getPointsMap().object2ObjectEntrySet().stream()
.map(entry -> entry.getKey() + " - " + entry.getValue().toString())
.collect(Collectors.joining()));
.collect(Collectors.joining("\n")));
int minutes = Queries.getMinutesSinceUpdated(uuid);
user.removePoints(minutes * 2);

View File

@ -54,10 +54,10 @@ public class EconUser {
public void syncPoints() {
if (Config.DEBUG)
Logger.info("Saving points EconUser % currently at % points",
Logger.info("Saving points EconUser % currently has the following points:\n%",
uuid.toString(), getPointsMap().object2ObjectEntrySet().stream()
.map(entry -> entry.getKey() + " - " + entry.getValue().toString())
.collect(Collectors.joining()));
.collect(Collectors.joining("\n")));
new BukkitRunnable() {
@Override
public void run() {