From 55da3823535c9c52a566046fd2ff132cc114555e Mon Sep 17 00:00:00 2001 From: Butzlabben Date: Fri, 7 Dec 2018 23:03:34 +0100 Subject: [PATCH] May fix an issue with /ws tp --- WorldSystem/pom.xml | 2 +- .../main/java/de/butzlabben/world/command/WSTPCommand.java | 4 ++++ .../java/de/butzlabben/world/config/DependenceConfig.java | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WorldSystem/pom.xml b/WorldSystem/pom.xml index fcc39dc..7921370 100644 --- a/WorldSystem/pom.xml +++ b/WorldSystem/pom.xml @@ -3,7 +3,7 @@ 4.0.0 de.butzlabben.world WorldSystem - 2.4.0.3 + 2.4.0.3-Dev UTF-8 - diff --git a/WorldSystem/src/main/java/de/butzlabben/world/command/WSTPCommand.java b/WorldSystem/src/main/java/de/butzlabben/world/command/WSTPCommand.java index b911429..b1e619b 100644 --- a/WorldSystem/src/main/java/de/butzlabben/world/command/WSTPCommand.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/command/WSTPCommand.java @@ -24,6 +24,10 @@ public class WSTPCommand implements CommandExecutor { WorldSystem.getInstance().getCommand("ws tp").getUsage())); return true; } + if(args[1].equalsIgnoreCase(p.getName()) || args[1].equalsIgnoreCase(p.getUniqueId().toString())) { + p.chat("/ws home"); + return true; + } DependenceConfig dc = new DependenceConfig(args[1]); String worldname = dc.getWorldNamebyOfflinePlayer(); if (!dc.hasWorld()) { diff --git a/WorldSystem/src/main/java/de/butzlabben/world/config/DependenceConfig.java b/WorldSystem/src/main/java/de/butzlabben/world/config/DependenceConfig.java index c05d0ca..1ff74d7 100644 --- a/WorldSystem/src/main/java/de/butzlabben/world/config/DependenceConfig.java +++ b/WorldSystem/src/main/java/de/butzlabben/world/config/DependenceConfig.java @@ -85,7 +85,6 @@ public class DependenceConfig { File dconfig = new File("plugins//WorldSystem//dependence.yml"); YamlConfiguration cfg = YamlConfiguration.loadConfiguration(dconfig); String uuid = op.getUniqueId().toString(); - //Fix for #40 if (cfg.isInt("Dependences." + uuid + ".ID")) return true;