Class LandPriceCommand
java.lang.Object
net.chen.legacyLand.resource.commands.LandPriceCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
public class LandPriceCommand
extends Object
implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
/landprice 命令(P3):地价查询、询问、回复、公开/隐藏。
子命令:
/landprice(无参)— 显示脚下区块地价(成员可见,或已被 show 公开时全员可见)。/landprice ask [留言]— 向当前地块所属城镇询问地价(非成员,地块必须已声明)。/landprice reply <inquiryId> <price>— 城镇成员回复询问。/landprice show/hide— 切换脚下区块的公开展示状态(仅成员可操作)。/landprice list— 列出脚下区块当前所有未回复的询问。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String @NotNull [] args) onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String @NotNull [] args)
-
Constructor Details
-
LandPriceCommand
public LandPriceCommand()
-
-
Method Details
-
onCommand
-
onTabComplete
@Nullable public @Nullable List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String @NotNull [] args) - Specified by:
onTabCompletein interfaceorg.bukkit.command.TabCompleter
-