mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-24 01:21:03 +03:00
24 lines
712 B
Java
24 lines
712 B
Java
package pro.gravit.launchserver.console;
|
|
|
|
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;
|
|
|
|
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();
|
|
if (!request.success) LogHelper.error("Error executing command");
|
|
}
|
|
}
|