aaron burr, sir
This commit is contained in:
parent
062a173c32
commit
9291ab671f
2 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import alisolarflare.components.Component;
|
import alisolarflare.components.Component;
|
||||||
import alisolarflare.components.metrics.commands.GetMetrics;
|
import alisolarflare.components.metrics.commands.GetMetrics;
|
||||||
import alisolarflare.components.metrics.listeners.PlayerLoginListener;
|
import alisolarflare.components.metrics.listeners.PlayerJoinListener;
|
||||||
|
|
||||||
public class MetricsModule extends Component{
|
public class MetricsModule extends Component{
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ public class MetricsModule extends Component{
|
||||||
|
|
||||||
metricsList = metricsYml.getStringList("playerLogins");
|
metricsList = metricsYml.getStringList("playerLogins");
|
||||||
registerCommand(plugin, new GetMetrics(this));
|
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 {
|
private FileConfiguration loadFileConfiguration(JavaPlugin plugin, String fileName) throws FileNotFoundException, IOException, InvalidConfigurationException {
|
||||||
|
|
|
@ -6,10 +6,10 @@ import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
|
|
||||||
import alisolarflare.components.metrics.MetricsModule;
|
import alisolarflare.components.metrics.MetricsModule;
|
||||||
|
|
||||||
public class PlayerLoginListener implements Listener{
|
public class PlayerJoinListener implements Listener{
|
||||||
|
|
||||||
private MetricsModule module;
|
private MetricsModule module;
|
||||||
public PlayerLoginListener(MetricsModule module){
|
public PlayerJoinListener(MetricsModule module){
|
||||||
this.module = module;
|
this.module = module;
|
||||||
}
|
}
|
||||||
@EventHandler
|
@EventHandler
|
Loading…
Reference in a new issue