1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2024-09-19 20:15:47 +00:00

添加控制台尝试打开称号菜单时的反馈

This commit is contained in:
“Yurinan” 2021-10-24 14:29:57 +08:00
parent 3b03ec4616
commit c2fa1a1e95
2 changed files with 4 additions and 1 deletions

View File

@ -34,5 +34,5 @@ jobs:
- name: "Upload artifact"
uses: actions/upload-artifact@v2
with:
name: artifact
name: Artifact
path: staging

View File

@ -1,5 +1,6 @@
package cc.carm.plugin.userprefix.command;
import cc.carm.plugin.userprefix.Main;
import cc.carm.plugin.userprefix.ui.PrefixSelectGUI;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
@ -14,6 +15,8 @@ public class UserPrefixCommand implements CommandExecutor {
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {
if (sender instanceof Player) {
PrefixSelectGUI.open((Player) sender);
} else {
Main.log("控制台无法使用此命令!");
}
return true;
}