Fixed the mixup of backslash and forward slash

This commit is contained in:
MattBDev 2019-10-09 21:51:37 -04:00
parent f5ded1e50b
commit 7d60053aaf
2 changed files with 4 additions and 4 deletions

View File

@ -252,17 +252,17 @@ public class FaweBukkit implements IFawe, Listener {
try {
this.vault = new VaultUtil();
} catch (final Throwable e) {
this.debug("&dVault is used for persistent `/wea` toggles.");
}
}
@Override
public String getDebugInfo() {
StringBuilder msg = new StringBuilder();
msg.append("server.version: " + Bukkit.getVersion() + "\n");
msg.append("server.version: ").append(Bukkit.getVersion()).append("\n");
msg.append("Plugins: \n");
for (Plugin p : Bukkit.getPluginManager().getPlugins()) {
msg.append(" - " + p.getName() + ": " + p.getDescription().getVersion() + "\n");
msg.append(" - ").append(p.getName()).append(": ")
.append(p.getDescription().getVersion()).append("\n");
}
return msg.toString();
}

View File

@ -544,7 +544,7 @@ public final class PlatformCommandManager {
TaskManager.IMP.taskNow(() -> {
int space0 = args.indexOf(' ');
String arg0 = space0 == -1 ? args : args.substring(0, space0);
if (arg0.startsWith("\\")) {
if (arg0.startsWith("/")) {
arg0 = arg0.substring(1);
}
Optional<Command> optional = commandManager.getCommand(arg0);