-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): add permission support and rename server tag
Add permission support configuration in BotConfig and rename the server tag from "主服" to "main" for consistency. Also, refactor the build.gradle files to include shadowJar configurations and relocate dependencies to preventconflicts. The mod version has been updated to 2.3.0.
- Loading branch information
Showing
8 changed files
with
88 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cn.evole.mods.mcbot.api.cmd; | ||
|
||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @Project: McBot | ||
* @Author: cnlimiter | ||
* @CreateTime: 2024/8/14 13:04 | ||
* @Description: | ||
*/ | ||
@Getter | ||
public class Cmd { | ||
private String cmd; | ||
private List<String> alies; | ||
private List<String> allow_members; | ||
private String permission; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Common/src/main/java/cn/evole/mods/mcbot/core/cmd/CmdHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package cn.evole.mods.mcbot.core.cmd; | ||
|
||
import cn.evole.mods.mcbot.api.cmd.Cmd; | ||
import org.yaml.snakeyaml.Yaml; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @Project: McBot | ||
* @Author: cnlimiter | ||
* @CreateTime: 2024/8/14 13:19 | ||
* @Description: | ||
*/ | ||
public class CmdHandler { | ||
|
||
public static List<Cmd> cmds = new ArrayList<>(); | ||
|
||
public static void load() { | ||
Yaml yaml = new Yaml(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters