- parseNations(towns): Promise<{
allies?: string[];
area: number;
capital: {
name: string;
x: string | number;
z: string | number;
};
councillors: string[];
enemies?: string[];
king: string;
mapColorHexCode?: string;
name: string;
ranks?: {
[key: string]: string[];
};
residents: string[];
spawn?: {
pitch?: number;
world: string;
x: string | number;
y?: string | number;
yaw?: number;
z: string | number;
};
stats?: {
balance: number;
maxTownBlocks?: number;
numResidents?: number;
numTownBlocks?: number;
numTowns?: number;
};
status?: Partial<{
isCapital: boolean;
isNPC: boolean;
isNeutral: boolean;
isOnline: boolean;
isOpen: boolean;
isOverClaimed: boolean;
isPublic: boolean;
isRuined: boolean;
}>;
towns: string[];
uuid?: string;
wealth?: number;
wiki?: string;
}[]> Parameters
- towns: {
area: number;
balance?: number;
board?: string;
bounds: TownBounds;
colours: {
fill: `#${string}`;
outline: `#${string}`;
};
councillors: string[];
flags: {
capital: boolean;
public: boolean;
pvp: boolean;
};
foundedTimestamp: number;
founder?: string;
mayor: string;
name: string;
nation: string;
opacities?: {
fill: Opacity;
outline: Opacity;
};
outlaws?: string[];
points: {
x: number;
z: number;
}[];
residents: string[];
timestamps?: {
founded: number;
joinedNation?: number;
};
trusted?: string[];
wealth?: number;
wikis?: {
nation?: string;
town?: string;
};
x: number;
z: number;
}[]
Returns Promise<{
allies?: string[];
area: number;
capital: {
name: string;
x: string | number;
z: string | number;
};
councillors: string[];
enemies?: string[];
king: string;
mapColorHexCode?: string;
name: string;
ranks?: {
[key: string]: string[];
};
residents: string[];
spawn?: {
pitch?: number;
world: string;
x: string | number;
y?: string | number;
yaw?: number;
z: string | number;
};
stats?: {
balance: number;
maxTownBlocks?: number;
numResidents?: number;
numTownBlocks?: number;
numTowns?: number;
};
status?: Partial<{
isCapital: boolean;
isNPC: boolean;
isNeutral: boolean;
isOnline: boolean;
isOpen: boolean;
isOverClaimed: boolean;
isPublic: boolean;
isRuined: boolean;
}>;
towns: string[];
uuid?: string;
wealth?: number;
wiki?: string;
}[]>