Improved logging for debug
This commit is contained in:
parent
25a9eb1f58
commit
24ac456c17
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user