mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 19:49:11 +03:00
25 lines
706 B
Java
25 lines
706 B
Java
|
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();
|
||
|
if(!request.success) LogHelper.error("Error executing command");
|
||
|
}
|
||
|
}
|