그래서 기본적으로 워핑 시스템을 만들고 있지만 미니 게임에 사용하고 있습니다. 나는 서버의 소유주가 미니 게임이 시작될 때 다른 플레이어가 스폰 할 수 있도록 워프를 설정할 수 있기를 바랍니다.구성 파일에 설정된 좌표로 플레이어를 텔레포트 할 수 없습니다 [Bukkit]
p.teleport(cakestart);
내가 할 수있는 :
if(cmd.getName().equalsIgnoreCase("cakestart")){
if(getConfig().contains("locations." + args[0])){
int locationsX = this.getConfig().getInt("locations" + args[0] + ".X");
int locationsY = this.getConfig().getInt("locations" + args[0] + ".Y");
int locationsZ = this.getConfig().getInt("locations" + args[0] + ".Z");
int locationsYaw = this.getConfig().getInt("locations" + args[0] + ".Yaw");
int locationsPitch = this.getConfig().getInt("locations" + args[0] + ".Pitch");
Object locationsworld = this.getConfig().get("locations" + args[0] + ".World");
Location cakestart = new Location((World) locationsworld, locationsX, locationsY, locationsZ, locationsYaw, locationsPitch);
p.teleport(cakestart);
p.sendMessage("TPED!");
}
}
는 오류가 일어나고있다 : 어떤 이유로, 나는 플레이어를 텔레포트 수 없다는되는 오류가 발생하고, 여기에 순간 이동 부분에 대한 내 코드는 필요한 정보를 더 제공하십시오.
StackTrace 란 무엇입니까? (콘솔에 표시되는 내용) – Jojodmo