Fixed the mixup of backslash and forward slash

Dieser Commit ist enthalten in:
MattBDev 2019-10-09 21:51:37 -04:00
Ursprung f5ded1e50b
Commit 7d60053aaf
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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