mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
添加Tab补全 使用新版PH...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
2467855766
commit
8aa88ddfef
@ -2,20 +2,19 @@ package org.maxgamer.QuickShop.Command;
|
|||||||
|
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandException;
|
import org.bukkit.command.CommandException;
|
||||||
import org.bukkit.command.CommandExecutor;
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.maxgamer.QuickShop.QuickShop;
|
import org.maxgamer.QuickShop.QuickShop;
|
||||||
|
|
||||||
import cn.citycraft.PluginHelper.commands.DefaultCommand;
|
import cn.citycraft.PluginHelper.commands.DefaultCommand;
|
||||||
import cn.citycraft.PluginHelper.commands.HandlerSubCommand;
|
import cn.citycraft.PluginHelper.commands.HandlerSubCommand;
|
||||||
|
|
||||||
public class QuickShopCommands implements CommandExecutor, DefaultCommand {
|
public class QuickShopCommands implements DefaultCommand {
|
||||||
HandlerSubCommand hsc;
|
HandlerSubCommand hsc;
|
||||||
QuickShop plugin;
|
QuickShop plugin;
|
||||||
|
|
||||||
public QuickShopCommands(final QuickShop plugin) {
|
public QuickShopCommands(final QuickShop plugin) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
hsc = new HandlerSubCommand(plugin);
|
hsc = new HandlerSubCommand(plugin, "qs");
|
||||||
hsc.setDefaultCommand(this);
|
hsc.setDefaultCommand(this);
|
||||||
hsc.registerCommand(new CommandClean(plugin));
|
hsc.registerCommand(new CommandClean(plugin));
|
||||||
hsc.registerCommand(new CommandEmpty(plugin));
|
hsc.registerCommand(new CommandEmpty(plugin));
|
||||||
@ -37,9 +36,4 @@ public class QuickShopCommands implements CommandExecutor, DefaultCommand {
|
|||||||
hsc.sendHelp(sender, label);
|
hsc.sendHelp(sender, label);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {
|
|
||||||
return hsc.onCommand(sender, cmd, label, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
@ -328,8 +328,8 @@ public class QuickShop extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Command handlers
|
// Command handlers
|
||||||
final QuickShopCommands commandExecutor = new QuickShopCommands(this);
|
new QuickShopCommands(this);
|
||||||
getCommand("qs").setExecutor(commandExecutor);
|
|
||||||
if (configManager.getFindDistance() > 100) {
|
if (configManager.getFindDistance() > 100) {
|
||||||
getLogger().warning("商店查找半径过大 可能导致服务器Lag! 推荐使用低于 100 的配置!");
|
getLogger().warning("商店查找半径过大 可能导致服务器Lag! 推荐使用低于 100 的配置!");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user