Console command doesnt need to start with the command prefix

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2020-12-09 06:30:15 +01:00
parent 327d563e34
commit ea3021ea69

View File

@ -59,10 +59,7 @@ public final class CommandManager {
try {
if (bi.ready()) {
String command = bi.readLine();
if (!command.startsWith(COMMAND_PREFIX))
continue;
command = command.replaceFirst(COMMAND_PREFIX, "");
final String command = bi.readLine();
execute(consoleSender, command);
}
} catch (IOException e) {