mirror of
https://github.com/mingjun97/gc-mojoconsole-plus.git
synced 2024-11-27 20:18:07 +00:00
Merge branch 'gc-mojoconsole:main' into main
This commit is contained in:
commit
59f45610aa
@ -6,8 +6,9 @@ MojoConsolePlus(MCP) is a [Grasscutter](https://github.com/Grasscutters/Grasscut
|
|||||||
|
|
||||||
| Grasscutter version | MojoConsole version |
|
| Grasscutter version | MojoConsole version |
|
||||||
| ------------------- | ------------------- |
|
| ------------------- | ------------------- |
|
||||||
| 1.2.1-dev | 1.2.0-dev |
|
| 1.2.1-dev | [1.2.0-dev](https://github.com/gc-mojoconsole/gc-mojoconsole-backend/releases/tag/dev-1.2.0) |
|
||||||
| 1.2.2-dev | 1.3.0-dev |
|
| 1.2.2-dev | [1.3.0-dev](https://github.com/gc-mojoconsole/gc-mojoconsole-backend/releases/tag/dev-1.3.0) |
|
||||||
|
| 1.2.3-dev | [1.4.0-dev](https://github.com/gc-mojoconsole/gc-mojoconsole-backend/releases/tag/dev-1.4.0) |
|
||||||
|
|
||||||
## Currently Features:
|
## Currently Features:
|
||||||
- [x] Send console link in game
|
- [x] Send console link in game
|
||||||
|
@ -19,7 +19,7 @@ plugins {
|
|||||||
sourceCompatibility = 17
|
sourceCompatibility = 17
|
||||||
targetCompatibility = 17
|
targetCompatibility = 17
|
||||||
|
|
||||||
def version_tag = "dev-1.3.0"
|
def version_tag = "dev-1.4.0"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -20,8 +20,8 @@ import emu.grasscutter.server.event.player.PlayerJoinEvent;
|
|||||||
import emu.grasscutter.server.event.player.PlayerQuitEvent;
|
import emu.grasscutter.server.event.player.PlayerQuitEvent;
|
||||||
import io.javalin.http.staticfiles.Location;
|
import io.javalin.http.staticfiles.Location;
|
||||||
import emu.grasscutter.plugin.PluginConfig;
|
import emu.grasscutter.plugin.PluginConfig;
|
||||||
import static emu.grasscutter.Configuration.PLUGIN;
|
import static emu.grasscutter.config.Configuration.PLUGIN;
|
||||||
import static emu.grasscutter.Configuration.HTTP_POLICIES;
|
import static emu.grasscutter.config.Configuration.HTTP_POLICIES;
|
||||||
|
|
||||||
import com.mojo.consoleplus.config.MojoConfig;
|
import com.mojo.consoleplus.config.MojoConfig;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
@ -12,14 +12,20 @@ import emu.grasscutter.command.Command;
|
|||||||
import emu.grasscutter.command.CommandHandler;
|
import emu.grasscutter.command.CommandHandler;
|
||||||
import emu.grasscutter.game.mail.Mail;
|
import emu.grasscutter.game.mail.Mail;
|
||||||
import emu.grasscutter.game.player.Player;
|
import emu.grasscutter.game.player.Player;
|
||||||
import static emu.grasscutter.Configuration.*;
|
import static emu.grasscutter.config.Configuration.*;
|
||||||
|
|
||||||
import com.mojo.consoleplus.ConsolePlus;
|
import com.mojo.consoleplus.ConsolePlus;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import emu.grasscutter.BuildConfig;
|
import emu.grasscutter.BuildConfig;
|
||||||
|
|
||||||
@Command(label = "mojoconsole", usage = "mojoconsole", description = "Send Mojoconsole link via mail (by default it's in-game webview, but you may use argument `o` for popping out external browser)", aliases = {
|
@Command(label = "mojoconsole",
|
||||||
"mojo" }, permission = "mojo.console")
|
usage = {
|
||||||
|
"",
|
||||||
|
"o"
|
||||||
|
},
|
||||||
|
aliases = {"mojo" },
|
||||||
|
permission = "mojo.console"
|
||||||
|
)
|
||||||
public class PluginCommand implements CommandHandler {
|
public class PluginCommand implements CommandHandler {
|
||||||
static class HashParams{
|
static class HashParams{
|
||||||
public String k2; // session key
|
public String k2; // session key
|
||||||
|
Loading…
Reference in New Issue
Block a user