1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2026-06-05 00:35:02 +08: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
2 changed files with 4 additions and 1 deletions
@@ -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;
}