2019-04-13 03:09:19 +03:00
|
|
|
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");
|
2019-04-13 03:09:19 +03:00
|
|
|
}
|
|
|
|
}
|