From 3dba165e2cdd5457eccd15b788d79a9cf8ca47ae Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Tue, 15 Nov 2016 00:18:30 -0500 Subject: [PATCH] changed login tracking to print to getmetrics --- .../components/metrics/listeners/PlayerLoginListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java b/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java index 289c2fd..472b80a 100644 --- a/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java +++ b/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java @@ -14,7 +14,8 @@ public class PlayerLoginListener implements Listener{ } @EventHandler public void onPlayerLogin(PlayerLoginEvent event){ - module.saveData(module.metricsYml, "loginlog."+System.currentTimeMillis(), event.getPlayer().getName()); + module.saveData(module.metricsYml, "loginlog."+System.currentTimeMillis()+event.getPlayer().getName(), event.getPlayer().getName()); + module.metricsList.add("loginlog."+System.currentTimeMillis()+event.getPlayer().getName()); event.getPlayer(); } }