2019-06-02 05:03:08 +03:00
|
|
|
package pro.gravit.launchserver.console;
|
2019-04-13 03:09:19 +03:00
|
|
|
|
2019-06-02 05:03:08 +03:00
|
|
|
import pro.gravit.launcher.events.request.ExecCommandRequestEvent;
|
|
|
|
import pro.gravit.launcher.request.admin.ExecCommandRequest;
|
|
|
|
import pro.gravit.utils.command.Command;
|
|
|
|
import pro.gravit.utils.helper.LogHelper;
|
2019-04-13 03:09:19 +03:00
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|