1
내가 명령을 입력 할 때 "/ customblock"속보 사용자 정의 블록
@EventHandler
public void onBlockBreak(BlockBreakEvent broke){
Player player = broke.getPlayer();
PlayerInventory inventory = broke.getPlayer().getInventory();
World world = player.getWorld();
Material block = broke.getBlock().getType();
if(block.equals(CustomBlock)){
player.sendMessage("Test");
}
세계와 PlayerInventory
겠어요 - 같은 추가 변수를 무시를 내가받을 사용자 지정 블록을 파괴하기 위해 노력하고있어 .. 내가 원하는 블록을 받고 있지만, 내가 그것을 깰 때 ... 그냥 아무 것도하지 말아라.
"CustomBlock"은 평등을 비교할 수있는 개체가 아닙니다. – Constant