feat: 准备 1.3.0 稳定版本
This commit is contained in:
@@ -3,6 +3,7 @@ package cn.infstar.essentialsC.commands;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.MenuType;
|
||||
|
||||
public class AnvilCommand extends BaseCommand {
|
||||
|
||||
@@ -12,7 +13,7 @@ public class AnvilCommand extends BaseCommand {
|
||||
|
||||
@Override
|
||||
protected boolean execute(Player player, String[] args) {
|
||||
player.openAnvil(null, true);
|
||||
player.openInventory(MenuType.ANVIL.builder().checkReachable(false).build(player));
|
||||
playBlockShortcutSound(player, Material.ANVIL, Sound.BLOCK_ANVIL_USE);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user