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

@ -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);