Hey ich möchte ein Sign wo an einer Position in der Config gespeichert ist und beim commando /infosign <wort> von gespeicherten block in der config wo ein sign ist die 1 zeile mit args[0] ersetzen
Leiter klappt es nicht
Code:
Location confloc = new Location(player.getWorld(), getConfig().getInt("InfoSign.X"), getConfig().getInt("InfoSign.Y"), getConfig().getInt("InfoSign.Z"));
Block block = player.getWorld().getBlockAt(confloc);
BlockState signstate = block.getState();
if(signstate.getType() == Material.SIGN_POST || signstate.getType() == Material.WALL_SIGN || signstate.getType() == Material.SIGN){
Sign sign = (Sign)signstate;
sign.setLine(1, args[0]);
}
Leiter klappt es nicht