mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-13 19:51:27 +01:00
Console command doesnt need to start with the command prefix
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
327d563e34
commit
ea3021ea69
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user