aaron burr, sir

This commit is contained in:
alisolarflare 2016-11-15 01:00:11 -05:00
parent 062a173c32
commit 9291ab671f
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ import org.bukkit.plugin.java.JavaPlugin;
import alisolarflare.components.Component;
import alisolarflare.components.metrics.commands.GetMetrics;
import alisolarflare.components.metrics.listeners.PlayerLoginListener;
import alisolarflare.components.metrics.listeners.PlayerJoinListener;
public class MetricsModule extends Component{
@ -30,7 +30,7 @@ public class MetricsModule extends Component{
metricsList = metricsYml.getStringList("playerLogins");
registerCommand(plugin, new GetMetrics(this));
registerListener(plugin, new PlayerLoginListener(this));
registerListener(plugin, new PlayerJoinListener(this));
}
private FileConfiguration loadFileConfiguration(JavaPlugin plugin, String fileName) throws FileNotFoundException, IOException, InvalidConfigurationException {

View file

@ -6,10 +6,10 @@ import org.bukkit.event.player.PlayerJoinEvent;
import alisolarflare.components.metrics.MetricsModule;
public class PlayerLoginListener implements Listener{
public class PlayerJoinListener implements Listener{
private MetricsModule module;
public PlayerLoginListener(MetricsModule module){
public PlayerJoinListener(MetricsModule module){
this.module = module;
}
@EventHandler