From 7d60053aaf7e6fb9b583445e5042594c55cb65cc Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Wed, 9 Oct 2019 21:51:37 -0400 Subject: [PATCH] Fixed the mixup of backslash and forward slash --- .../src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java | 6 +++--- .../extension/platform/PlatformCommandManager.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java index e5452b80b..d140eaada 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java @@ -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(); } diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index 20503ce7a..6a0fb6ecf 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -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 optional = commandManager.getCommand(arg0);