From 48a0e7c008540f1b13d5acd7e83634d21cce0058 Mon Sep 17 00:00:00 2001 From: jstoeckm2 Date: Sat, 7 Sep 2019 20:39:24 +0200 Subject: [PATCH] Add teleport delay to load world and BuildersUtlities command overwrite fix --- src/main/java/de/butzlabben/world/wrapper/SystemWorld.java | 6 +++++- src/main/resources/plugin.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java b/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java index 27d7c6a..b2a83f5 100644 --- a/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java +++ b/src/main/java/de/butzlabben/world/wrapper/SystemWorld.java @@ -337,7 +337,11 @@ public class SystemWorld { this.w = w; - teleportToWorldSpawn(p); + Bukkit.getScheduler().scheduleSyncDelayedTask(WorldSystem.getInstance(), new Runnable() { + public void run() { + teleportToWorldSpawn(p); + } + }, 10L); OfflinePlayer owner = Bukkit.getOfflinePlayer(WorldConfig.getWorldConfig(worldname).getOwner()); DependenceConfig dc = new DependenceConfig(owner); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 46f0ae3..6aeebd5 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -5,7 +5,7 @@ main: de.butzlabben.world.WorldSystem api-version: 1.13 -loadbefore: [FastAsyncWorldEdit, WorldEdit] +loadbefore: [FastAsyncWorldEdit, WorldEdit, BuildersUtilities] permissions: ws.*: