Don't make sendChatMessage abstract
This commit is contained in:
parent
2ff6fb6665
commit
e41a841bdb
@ -42,7 +42,6 @@ export default abstract class MapProvider implements LiveAtlasMapProvider {
|
||||
|
||||
abstract loadServerConfiguration(): Promise<void>;
|
||||
abstract populateWorld(world: LiveAtlasWorldDefinition): Promise<void>;
|
||||
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();
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user