forked from Minecraft/QoL
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
parent
118524e171
commit
07a69eb279
|
@ -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);
|
||||||
|
|
|
@ -58,8 +58,6 @@ public class JoinListener implements Listener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin.updatePlayerViewDistance(player);
|
|
||||||
|
|
||||||
CheckupCommand.join(player);
|
CheckupCommand.join(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue