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 <joey@ahines.net>
Reviewed-on: https://git.etztech.xyz/Minecraft/QoL/pulls/53
Reviewed-by: Etzelia <etzelia@hotmail.com>
up
Joey Hines 2020-07-18 17:57:24 +02:00 committed by Etzelia
parent 118524e171
commit 07a69eb279
3 changed files with 0 additions and 28 deletions

View File

@ -98,7 +98,6 @@ public class QoL extends JavaPlugin {
new DeathListener(this); new DeathListener(this);
new PlayerBucketEmptyListener(this); new PlayerBucketEmptyListener(this);
new BlockPlaceListener(this); new BlockPlaceListener(this);
new PlayerChangedWorldListener(this);
// Add commands // Add commands
new MainCommand(this); new MainCommand(this);

View File

@ -58,8 +58,6 @@ public class JoinListener implements Listener {
} }
} }
plugin.updatePlayerViewDistance(player);
CheckupCommand.join(player); CheckupCommand.join(player);
} }

View File

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