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

Merge pull request #5 from Yurinann/master

添加控制台尝试打开称号菜单时的反馈
This commit is contained in:
Carm 2021-10-24 21:17:10 +08:00 committed by GitHub
commit 07edaeb401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}