diff --git a/src/providers/MapProvider.ts b/src/providers/MapProvider.ts index 4c4e849..1ed9c4a 100644 --- a/src/providers/MapProvider.ts +++ b/src/providers/MapProvider.ts @@ -42,7 +42,6 @@ export default abstract class MapProvider implements LiveAtlasMapProvider { abstract loadServerConfiguration(): Promise; abstract populateWorld(world: LiveAtlasWorldDefinition): Promise; - abstract sendChatMessage(message: string): void; abstract startUpdates(): void; abstract stopUpdates(): void; @@ -51,6 +50,10 @@ export default abstract class MapProvider implements LiveAtlasMapProvider { abstract getTilesUrl(): string; abstract getMarkerIconUrl(icon: string): string; + sendChatMessage(message: string) { + throw new Error('Provider does not support chat'); + } + destroy() { this.currentWorldUnwatch(); } diff --git a/src/providers/Pl3xmapMapProvider.ts b/src/providers/Pl3xmapMapProvider.ts index b8c1609..7c1615d 100644 --- a/src/providers/Pl3xmapMapProvider.ts +++ b/src/providers/Pl3xmapMapProvider.ts @@ -453,10 +453,6 @@ export default class Pl3xmapMapProvider extends MapProvider { return players; } - sendChatMessage(message: string) { - throw new Error('Pl3xmap does not support chat'); - } - startUpdates() { this.updatesEnabled = true; this.update();