-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1.10.5-dev5]对插件进行部分重构,支持1.19.4+,准备重构插件页面
- Loading branch information
YufiriaMazenta
committed
Jul 24, 2024
1 parent
b775d52
commit 99aff78
Showing
88 changed files
with
452 additions
and
2,921 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 @@ | ||
crypticlibVer=1.0.11 |
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
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
61 changes: 61 additions & 0 deletions
61
src/main/java/com/github/yufiriamazenta/craftorithm/cmd/CraftorithmCommand.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,61 @@ | ||
package com.github.yufiriamazenta.craftorithm.cmd; | ||
|
||
import com.github.yufiriamazenta.craftorithm.cmd.sub.ReloadCommand; | ||
import com.github.yufiriamazenta.craftorithm.cmd.sub.RunArcencielCmd; | ||
import com.github.yufiriamazenta.craftorithm.cmd.sub.VersionCommand; | ||
import com.github.yufiriamazenta.craftorithm.cmd.sub.item.ItemCommand; | ||
import com.github.yufiriamazenta.craftorithm.cmd.sub.recipe.*; | ||
import com.github.yufiriamazenta.craftorithm.config.Languages; | ||
import com.github.yufiriamazenta.craftorithm.util.LangUtil; | ||
import crypticlib.command.BukkitCommand; | ||
import crypticlib.command.CommandInfo; | ||
import crypticlib.command.annotation.Command; | ||
import crypticlib.command.annotation.Subcommand; | ||
import crypticlib.perm.PermInfo; | ||
import org.bukkit.command.CommandSender; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
|
||
@Command | ||
public class CraftorithmCommand extends BukkitCommand { | ||
|
||
public static CraftorithmCommand INSTANCE = new CraftorithmCommand(); | ||
|
||
CraftorithmCommand() { | ||
super(new CommandInfo("craftorithm", new PermInfo("craftorithm.command"), new String[]{"craft", "cra", "crafto"})); | ||
} | ||
|
||
@Override | ||
public void execute(@NotNull CommandSender sender, @NotNull List<String> args) { | ||
LangUtil.sendLang(sender, Languages.COMMAND_UNDEFINED_SUBCMD); | ||
} | ||
|
||
@Subcommand | ||
ReloadCommand reload = ReloadCommand.INSTANCE; | ||
|
||
@Subcommand | ||
VersionCommand version = VersionCommand.INSTANCE; | ||
|
||
@Subcommand | ||
RemoveRecipeCommand remove = RemoveRecipeCommand.INSTANCE; | ||
|
||
@Subcommand | ||
ItemCommand item = ItemCommand.INSTANCE; | ||
|
||
@Subcommand | ||
RunArcencielCmd runArcenciel = RunArcencielCmd.INSTANCE; | ||
|
||
@Subcommand | ||
DisplayRecipeCommand display = DisplayRecipeCommand.INSTANCE; | ||
|
||
@Subcommand | ||
DisableRecipeCommand disable = DisableRecipeCommand.INSTANCE; | ||
|
||
@Subcommand | ||
RecipeListCommand recipeList = RecipeListCommand.INSTANCE; | ||
|
||
@Subcommand | ||
CreateRecipeCommand create = CreateRecipeCommand.INSTANCE; | ||
|
||
} |
66 changes: 0 additions & 66 deletions
66
src/main/java/com/github/yufiriamazenta/craftorithm/cmd/PluginCommand.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.