Launcher/LaunchServerConsole/src/main/java/ru/gravit/launchserver/console/ExecCommand.java

25 lines
707 B
Java
Raw Normal View History

package ru.gravit.launchserver.console;
import ru.gravit.launcher.events.request.ExecCommandRequestEvent;
import ru.gravit.launcher.request.admin.ExecCommandRequest;
import ru.gravit.utils.command.Command;
import ru.gravit.utils.helper.LogHelper;
public class ExecCommand extends Command {
@Override
public String getArgsDescription() {
return null;
}
@Override
public String getUsageDescription() {
return null;
}
@Override
public void invoke(String... args) throws Exception {
ExecCommandRequestEvent request = new ExecCommandRequest(String.join(" ")).request();
2019-05-15 14:11:22 +03:00
if (!request.success) LogHelper.error("Error executing command");
}
}