Skip to content

Commit

Permalink
Major Bug Fixes (1.0.2.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kihsomray committed Aug 13, 2021
1 parent 60bab49 commit 6bcdab0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -6,7 +6,7 @@

<groupId>net.zerotoil</groupId>
<artifactId>CyberTravel</artifactId>
<version>1.0.1.21</version>
<version>1.0.2.7</version>
<packaging>jar</packaging>

<name>CyberTravel</name>
Expand Down
Expand Up @@ -59,7 +59,7 @@ public void loadRegionData() {

}


if (!config.isConfigurationSection("regions")) return;
for (String i : config.getConfigurationSection("regions").getKeys(false)) {

String subPath = "regions." + i + ".";
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/net/zerotoil/cybertravel/commands/CTPCommand.java
Expand Up @@ -63,6 +63,13 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String
Configuration dataConfig = main.getFileCache().getStoredFiles().get("data").getConfig();
Configuration regionsConfig = main.getFileCache().getStoredFiles().get("regions").getConfig();

if (args.length == 0) {

sendHelpMessage(sender);
return true;

}

// 1 argument
if (args.length == 1) {

Expand Down Expand Up @@ -176,6 +183,9 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String

}

sendHelpMessage(sender);
return true;

}

// 2 arguments
Expand Down Expand Up @@ -575,6 +585,9 @@ public void run() {

}

sendHelpMessage(sender);
return true;

}

if (args[0].matches("(?i)setdisplayname")) {
Expand Down Expand Up @@ -1086,6 +1099,9 @@ public void run() {

}

sendHelpMessage(sender);
return true;

}

if (args.length == 4) {
Expand Down Expand Up @@ -1120,6 +1136,9 @@ public void run() {

}

sendHelpMessage(sender);
return true;

}

sendHelpMessage(sender);
Expand Down

0 comments on commit 6bcdab0

Please sign in to comment.