Changed PlayerLoginEvent to PlayerJoinEvent

This commit is contained in:
alisolarflare 2016-11-15 00:25:15 -05:00
parent 3dba165e2c
commit 062a173c32

View file

@ -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();