From 07a69eb27910c631d3b3a8604e62074b5591a9c3 Mon Sep 17 00:00:00 2001 From: ZeroHD Date: Sat, 18 Jul 2020 17:57:24 +0200 Subject: [PATCH] Removed all references to per world view distance (#53) Removed all references to per world view distance + Removed PlayerChangedWorldListener.java Co-authored-by: Joey Hines Reviewed-on: https://git.etztech.xyz/Minecraft/QoL/pulls/53 Reviewed-by: Etzelia --- src/main/java/xyz/etztech/qol/QoL.java | 1 - .../etztech/qol/listeners/JoinListener.java | 2 -- .../listeners/PlayerChangedWorldListener.java | 25 ------------------- 3 files changed, 28 deletions(-) delete mode 100644 src/main/java/xyz/etztech/qol/listeners/PlayerChangedWorldListener.java diff --git a/src/main/java/xyz/etztech/qol/QoL.java b/src/main/java/xyz/etztech/qol/QoL.java index 029b356..cc77273 100644 --- a/src/main/java/xyz/etztech/qol/QoL.java +++ b/src/main/java/xyz/etztech/qol/QoL.java @@ -98,7 +98,6 @@ public class QoL extends JavaPlugin { new DeathListener(this); new PlayerBucketEmptyListener(this); new BlockPlaceListener(this); - new PlayerChangedWorldListener(this); // Add commands new MainCommand(this); diff --git a/src/main/java/xyz/etztech/qol/listeners/JoinListener.java b/src/main/java/xyz/etztech/qol/listeners/JoinListener.java index a368d77..5b12cd5 100644 --- a/src/main/java/xyz/etztech/qol/listeners/JoinListener.java +++ b/src/main/java/xyz/etztech/qol/listeners/JoinListener.java @@ -58,8 +58,6 @@ public class JoinListener implements Listener { } } - plugin.updatePlayerViewDistance(player); - CheckupCommand.join(player); } diff --git a/src/main/java/xyz/etztech/qol/listeners/PlayerChangedWorldListener.java b/src/main/java/xyz/etztech/qol/listeners/PlayerChangedWorldListener.java deleted file mode 100644 index f935c74..0000000 --- a/src/main/java/xyz/etztech/qol/listeners/PlayerChangedWorldListener.java +++ /dev/null @@ -1,25 +0,0 @@ -package xyz.etztech.qol.listeners; - -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.Listener; -import org.bukkit.event.player.PlayerChangedWorldEvent; -import xyz.etztech.qol.QoL; - -import java.util.Map; - -public class PlayerChangedWorldListener implements Listener { - QoL plugin; - - public PlayerChangedWorldListener(QoL plugin) { - this.plugin = plugin; - plugin.getServer().getPluginManager().registerEvents(this, plugin); - } - - @EventHandler - public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { - Player player = event.getPlayer(); - - plugin.updatePlayerViewDistance(player); - } -}