mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2024-12-02 13:23:21 +01:00
May fix an issue with /ws tp <Own world>
This commit is contained in:
parent
e48777bcc5
commit
55da382353
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.butzlabben.world</groupId>
|
<groupId>de.butzlabben.world</groupId>
|
||||||
<artifactId>WorldSystem</artifactId>
|
<artifactId>WorldSystem</artifactId>
|
||||||
<version>2.4.0.3</version>
|
<version>2.4.0.3-Dev</version>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<project.build.number>-</project.build.number>
|
<project.build.number>-</project.build.number>
|
||||||
|
@ -24,6 +24,10 @@ public class WSTPCommand implements CommandExecutor {
|
|||||||
WorldSystem.getInstance().getCommand("ws tp").getUsage()));
|
WorldSystem.getInstance().getCommand("ws tp").getUsage()));
|
||||||
return true;
|
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]);
|
DependenceConfig dc = new DependenceConfig(args[1]);
|
||||||
String worldname = dc.getWorldNamebyOfflinePlayer();
|
String worldname = dc.getWorldNamebyOfflinePlayer();
|
||||||
if (!dc.hasWorld()) {
|
if (!dc.hasWorld()) {
|
||||||
|
@ -85,7 +85,6 @@ public class DependenceConfig {
|
|||||||
File dconfig = new File("plugins//WorldSystem//dependence.yml");
|
File dconfig = new File("plugins//WorldSystem//dependence.yml");
|
||||||
YamlConfiguration cfg = YamlConfiguration.loadConfiguration(dconfig);
|
YamlConfiguration cfg = YamlConfiguration.loadConfiguration(dconfig);
|
||||||
String uuid = op.getUniqueId().toString();
|
String uuid = op.getUniqueId().toString();
|
||||||
|
|
||||||
//Fix for #40
|
//Fix for #40
|
||||||
if (cfg.isInt("Dependences." + uuid + ".ID"))
|
if (cfg.isInt("Dependences." + uuid + ".ID"))
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user