From d5872104057e3ac4261447b59f1bf009f712f601 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Mon, 22 Jul 2019 20:07:11 +0200 Subject: [PATCH] Disable view distance override (#29) --- docs/source/misc.rst | 2 ++ src/main/java/xyz/etztech/qol/QoL.java | 3 +-- src/main/java/xyz/etztech/qol/test/Test.java | 24 -------------------- 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 src/main/java/xyz/etztech/qol/test/Test.java diff --git a/docs/source/misc.rst b/docs/source/misc.rst index fe82b73..3e84c98 100644 --- a/docs/source/misc.rst +++ b/docs/source/misc.rst @@ -56,5 +56,7 @@ If a player places TnT, starts a fire, or dumps lava, everyone with the ``qol.gr World View Distance Override ---------------------------- +.. note:: + Paper has removed this feature in ``1.14.x`` and so it has been disabled in QoL until it is re-implemented by Paper. Each world can have its own view distance. View distances of each world can be set in the config file. If no view distance is set, the view distance defaults to the one in server.properties. \ No newline at end of file diff --git a/src/main/java/xyz/etztech/qol/QoL.java b/src/main/java/xyz/etztech/qol/QoL.java index e187d94..429e41b 100644 --- a/src/main/java/xyz/etztech/qol/QoL.java +++ b/src/main/java/xyz/etztech/qol/QoL.java @@ -1,6 +1,5 @@ package xyz.etztech.qol; -import net.ess3.api.Economy; import net.ess3.api.IEssentials; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -303,7 +302,7 @@ public class QoL extends JavaPlugin { } public void updatePlayerViewDistance(Player player) { - player.setViewDistance(viewDistances.getOrDefault(player.getWorld().getName().toLowerCase(), getServer().getViewDistance())); + //player.setViewDistance(viewDistances.getOrDefault(player.getWorld().getName().toLowerCase(), getServer().getViewDistance())); } } diff --git a/src/main/java/xyz/etztech/qol/test/Test.java b/src/main/java/xyz/etztech/qol/test/Test.java deleted file mode 100644 index 7427a75..0000000 --- a/src/main/java/xyz/etztech/qol/test/Test.java +++ /dev/null @@ -1,24 +0,0 @@ -package xyz.etztech.qol.test; - -import com.google.gson.JsonArray; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParser; -import org.bukkit.ChatColor; -import xyz.etztech.qol.EtzTechUtil; -import xyz.etztech.qol.other.ShadowMuteTime; - -import java.io.BufferedReader; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.URL; -import java.util.Date; - -public class Test { - - public static void main(String[] args) { - - - } - -}