-
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.
- Loading branch information
ChiyodaXiaoYi
committed
Nov 16, 2023
1 parent
d36b113
commit 8c5c95b
Showing
28 changed files
with
257 additions
and
263 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
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
1 change: 0 additions & 1 deletion
1
src/main/java/com/github/yufiriamazenta/craftorithm/bstat/Metrics.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
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
30 changes: 30 additions & 0 deletions
30
src/main/java/com/github/yufiriamazenta/craftorithm/cmd/subcmd/RecipeListCommand.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,30 @@ | ||
package com.github.yufiriamazenta.craftorithm.cmd.subcmd; | ||
|
||
import com.github.yufiriamazenta.craftorithm.menu.impl.recipe.RecipeListMenuHolder; | ||
import com.github.yufiriamazenta.craftorithm.util.LangUtil; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
|
||
import java.util.List; | ||
|
||
//TODO 展示全服所有配方 | ||
public final class RecipeListCommand extends AbstractSubCommand { | ||
|
||
public static final RecipeListCommand INSTANCE = new RecipeListCommand(); | ||
|
||
private RecipeListCommand() { | ||
super("list", "craftorithm.command.list"); | ||
} | ||
|
||
@Override | ||
public boolean onCommand(CommandSender sender, List<String> args) { | ||
if (!checkSenderIsPlayer(sender)) { | ||
LangUtil.sendLang(sender, "command.player_only"); | ||
return true; | ||
} | ||
Player player = (Player) sender; | ||
player.openInventory(new RecipeListMenuHolder().getInventory()); | ||
return true; | ||
} | ||
|
||
} |
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.