From e0f71c6a6cf38e9953cc1de29576b1410b736021 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 9 May 2020 15:54:47 +0200 Subject: [PATCH] fix: PlayerLoginListener naming scheme --- varo/src/main/java/de/cliffbreak/varo/Varo.java | 4 ++-- ...PlayerPreLoginListener.java => PlayerLoginListener.java} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename varo/src/main/java/de/cliffbreak/varo/listeners/{PlayerPreLoginListener.java => PlayerLoginListener.java} (76%) diff --git a/varo/src/main/java/de/cliffbreak/varo/Varo.java b/varo/src/main/java/de/cliffbreak/varo/Varo.java index 34dcbdc..60b9ad5 100644 --- a/varo/src/main/java/de/cliffbreak/varo/Varo.java +++ b/varo/src/main/java/de/cliffbreak/varo/Varo.java @@ -17,7 +17,7 @@ import de.cliffbreak.varo.listeners.EntityRegainHealthListener; import de.cliffbreak.varo.listeners.PlayerClientOptionsChangeListener; import de.cliffbreak.varo.listeners.PlayerDeathListener; import de.cliffbreak.varo.listeners.PlayerJoinQuitListener; -import de.cliffbreak.varo.listeners.PlayerPreLoginListener; +import de.cliffbreak.varo.listeners.PlayerLoginListener; import de.cliffbreak.varo.managers.NPCManager; import de.cliffbreak.varo.uitls.BanUtils; import de.cliffbreak.varo.uitls.PlayerCache; @@ -53,7 +53,7 @@ public class Varo extends JavaPlugin { this.config.options().copyDefaults(true); this.saveConfig(); - this.getServer().getPluginManager().registerEvents(new PlayerPreLoginListener(this), this); + this.getServer().getPluginManager().registerEvents(new PlayerLoginListener(this), this); this.getServer().getPluginManager().registerEvents(new PlayerJoinQuitListener(this), this); this.getServer().getPluginManager().registerEvents(new PlayerClientOptionsChangeListener(this), this); this.getServer().getPluginManager().registerEvents(new ChatListener(), this); diff --git a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerPreLoginListener.java b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerLoginListener.java similarity index 76% rename from varo/src/main/java/de/cliffbreak/varo/listeners/PlayerPreLoginListener.java rename to varo/src/main/java/de/cliffbreak/varo/listeners/PlayerLoginListener.java index b6caca8..62b2110 100644 --- a/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerPreLoginListener.java +++ b/varo/src/main/java/de/cliffbreak/varo/listeners/PlayerLoginListener.java @@ -7,16 +7,16 @@ import org.bukkit.event.player.PlayerLoginEvent.Result; import de.cliffbreak.varo.Varo; -public class PlayerPreLoginListener implements Listener { +public class PlayerLoginListener implements Listener { private final Varo plugin; - public PlayerPreLoginListener(final Varo plugin) { + public PlayerLoginListener(final Varo plugin) { this.plugin = plugin; } @EventHandler - public void onPlayerPreLogin(final PlayerLoginEvent e) { + public void onPlayerLogin(final PlayerLoginEvent e) { if (this.plugin.getBanUtils().isBanned(e.getPlayer().getUniqueId())) { e.disallow(Result.KICK_BANNED, "§4Du bist gestorben.\n \n§cDamit bist du aus §eVaro§c ausgeschieden."); }