Function averageNationPos
- averageNationPos(name, towns): "Error getting average position: 'towns' parameter not defined!" | {
x: number;
z: number;
} Parameters
- name: string
- towns: {
area: number;
balance?: number;
bounds: TownBounds;
colours: {
fill: `#${string}`;
outline: `#${string}`;
};
flags: {
capital: boolean;
explosion: boolean;
fire: boolean;
mobs: boolean;
public: boolean;
pvp: boolean;
};
founder?: string;
mayor: string;
name: string;
nation: string;
opacities?: {
fill: Opacity;
outline: Opacity;
};
outlaws?: string[];
residents: string[];
timestamps?: {
founded: number;
joinedNation?: number;
};
trusted?: string[];
wiki?: string;
x: number;
z: number;
}[]
Returns "Error getting average position: 'towns' parameter not defined!" | {
x: number;
z: number;
}