From 062a173c32f454de43403e774b100c5ad2fec78d Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Tue, 15 Nov 2016 00:25:15 -0500 Subject: [PATCH] Changed PlayerLoginEvent to PlayerJoinEvent --- .../components/metrics/listeners/PlayerLoginListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java b/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java index 472b80a..5baab2f 100644 --- a/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java +++ b/src/alisolarflare/components/metrics/listeners/PlayerLoginListener.java @@ -2,7 +2,7 @@ package alisolarflare.components.metrics.listeners; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; -import org.bukkit.event.player.PlayerLoginEvent; +import org.bukkit.event.player.PlayerJoinEvent; import alisolarflare.components.metrics.MetricsModule; @@ -13,7 +13,7 @@ public class PlayerLoginListener implements Listener{ this.module = module; } @EventHandler - public void onPlayerLogin(PlayerLoginEvent event){ + public void onPlayerLogin(PlayerJoinEvent event){ module.saveData(module.metricsYml, "loginlog."+System.currentTimeMillis()+event.getPlayer().getName(), event.getPlayer().getName()); module.metricsList.add("loginlog."+System.currentTimeMillis()+event.getPlayer().getName()); event.getPlayer();