fix: Added missing commander restrictions

This commit is contained in:
Davide Passoni
2025-03-20 17:30:28 +01:00
parent 69e8fed623
commit b3e53d07dd
6 changed files with 136 additions and 58 deletions

View File

@@ -28,6 +28,7 @@ import {
TACAN,
} from "../interfaces";
import { MapOptionsChangedEvent, ServerStatusUpdatedEvent, WrongCredentialsEvent } from "../events";
import { Coalition } from "../types/types";
export class ServerManager {
#connected: boolean = false;
@@ -341,9 +342,10 @@ export class ServerManager {
this.PUT(data, callback);
}
cloneUnits(units: { ID: number; location: LatLng }[], deleteOriginal: boolean, spawnPoints: number, callback: CallableFunction = () => {}) {
cloneUnits(units: { ID: number; location: LatLng }[], deleteOriginal: boolean, spawnPoints: number, coalition: Coalition, callback: CallableFunction = () => {}) {
var command = {
units: units,
coalition: coalition,
deleteOriginal: deleteOriginal,
spawnPoints: spawnPoints,
};