update
This commit is contained in:
@@ -273,6 +273,7 @@ public final class Survival extends JavaPlugin {
|
||||
getCommand("point").setExecutor(new PointCommandExecutor(this));
|
||||
getCommand("selfkill").setExecutor(new KillCommandExecutor(this));
|
||||
getCommand("land").setExecutor(new LandCommandExecutor(this));
|
||||
getCommand("qd").setExecutor(new LandCommandExecutor(this));
|
||||
getLogger().info("Survival插件已启用,信用分持久化功能加载完成!");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,21 +1,12 @@
|
||||
package org.xgqy.survival.command;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.meta.ItemMeta;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.xgqy.survival.Survival;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class DqshopCommandExecutor implements CommandExecutor {
|
||||
|
||||
private Survival plugin;
|
||||
@@ -26,8 +17,10 @@ public class DqshopCommandExecutor implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {
|
||||
if (sender instanceof Player) {
|
||||
Inventory shopGui = Bukkit.createInventory(null, 54, ChatColor.GOLD + "商城");
|
||||
//if (sender instanceof Player) {
|
||||
sender.sendMessage(ChatColor.RED+"本功能已废弃!请前往官网 https://starpavilion.xyz");
|
||||
return true;
|
||||
/*Inventory shopGui = Bukkit.createInventory(null, 54, ChatColor.GOLD + "商城");
|
||||
ItemStack head = new ItemStack(Material.PLAYER_HEAD);
|
||||
ItemMeta headmeta = head.getItemMeta();
|
||||
List<String> meta1 = new ArrayList<>();
|
||||
@@ -181,6 +174,6 @@ public class DqshopCommandExecutor implements CommandExecutor {
|
||||
sender.sendMessage(ChatColor.RED + "仅玩家能使用该命令!");
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return true;*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user