Skip to content

Commit

Permalink
[2.0.0-dev18]更新CrypticLib版本0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YufiriaMazenta committed Feb 4, 2024
1 parent e8a0342 commit 551868a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import java.text.SimpleDateFormat
version = "2.0.0-dev17"
version = "2.0.0-dev18"

plugins {
`java-library`
Expand Down Expand Up @@ -40,7 +40,7 @@ dependencies {
compileOnly("io.lumine:Mythic-Dist:5.3.5")
compileOnly("io.lumine:MythicLib-dist:1.6.2-SNAPSHOT")
compileOnly("net.Indyuce:MMOItems-API:6.9.5-SNAPSHOT")
implementation("com.crypticlib:CrypticLib:0.14.3")
implementation("com.crypticlib:CrypticLib:0.15.0")
}

group = "com.github.yufiriamazenta"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PluginCommand extends CommandHandler {

@Subcommand
private SubcommandHandler reload = new SubcommandHandler(
new SubcommandHandler.NodeInfo("reload", new PermInfo("craftorithm.command.reload")),
new SubcommandHandler.SubcommandInfo("reload", new PermInfo("craftorithm.command.reload")),
(sender, args) -> {
try {
Craftorithm.instance().reloadConfig();
Expand All @@ -58,7 +58,7 @@ public class PluginCommand extends CommandHandler {

@Subcommand
private SubcommandHandler version = new SubcommandHandler(
new SubcommandHandler.NodeInfo("version",new PermInfo("craftorithm.command.version")),
new SubcommandHandler.SubcommandInfo("version",new PermInfo("craftorithm.command.version")),
(sender, args) -> {
LangUtil.sendLang(sender, Languages.COMMAND_VERSION);
return true;
Expand All @@ -67,7 +67,7 @@ public class PluginCommand extends CommandHandler {

@Subcommand
private SubcommandHandler run = new SubcommandHandler(
new SubcommandHandler.NodeInfo("run", new PermInfo("craftorithm.command.run")),
new SubcommandHandler.SubcommandInfo("run", new PermInfo("craftorithm.command.run")),
(sender, args) -> {
if (!checkSenderIsPlayer(sender))
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public abstract class AbstractSubCommand extends SubcommandHandler {

protected AbstractSubCommand(String command, String perm) {
super(new NodeInfo(command, new PermInfo(perm)));
super(new SubcommandInfo(command, new PermInfo(perm)));
}

protected AbstractSubCommand(String command) {
Expand All @@ -26,7 +26,7 @@ public boolean onCommand(CommandSender sender, List<String> args) {
sendNotEnoughCmdParamMsg(sender, 1);
return true;
}
SubcommandHandler subcommandHandler = nodes().get(args.get(0));
SubcommandHandler subcommandHandler = subcommands().get(args.get(0));
if (subcommandHandler == null) {
LangUtil.sendLang(sender, Languages.COMMAND_UNDEFINED_SUBCMD);
} else {
Expand Down

0 comments on commit 551868a

Please sign in to comment.