This error is spamming for every player who logs in and moves.
[13:56:21] [Craft Scheduler Thread - 124/WARN]: [BestViewDistance] Plugin BestViewDistance v11.9 generated an exception while executing task 143
java.lang.ClassCastException: class org.bukkit.craftbukkit.v1_13_R2.CraftWorld cannot be cast to class com.sk89q.worldedit.world.World (org.bukkit.craftbukkit.v1_13_R2.CraftWorld is in unnamed module of loader 'app'; com.sk89q.worldedit.world.World is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @24c03b1e)
at me.lxct.bestviewdistance.functions.hooks.WorldGuardHook.getPlayerRegions(WorldGuardHook.java:21) ~[?:?]
at me.lxct.bestviewdistance.functions.BVDPlayer.getCurrentMaxLimit(BVDPlayer.java:98) ~[?:?]
at me.lxct.bestviewdistance.functions.BVDPlayer.setScheduledViewDistance(BVDPlayer.java:149) ~[?:?]
at me.lxct.bestviewdistance.functions.util.Calculations.calculatePlayersBestViewDistance(Calculations.java:35) ~[?:?]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftTask.run(CraftTask.java:84) ~[patched_1.13.2.jar:git-Paper-588]
at org.bukkit.craftbukkit.v1_13_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) ~[patched_1.13.2.jar:git-Paper-588]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.13.2.jar:git-Paper-588]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
Paper dev 588 (Spigot 1.13.2) BestViewDistance compiled as of commit https://github.com/Kugge/BestViewDistance/commit/8e335e8d61ba77dd4e1c83dfda28e23ac98771f9 WorldGuard dev 1828 WorldEdit dev 4106
Config https://paste.ubuntu.com/p/prQjMy2Qvk/
This error is spamming for every player who logs in and moves.