Add reload radio stations cmd
This commit is contained in:
@@ -214,4 +214,15 @@ function getRadioStationData(radioStationId) {
|
|||||||
return getServerData().radioStations[radioStationId];
|
return getServerData().radioStations[radioStationId];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function reloadAllRadioStationsCommand(command, params, client) {
|
||||||
|
stopRadioStreamForPlayer(null);
|
||||||
|
getServerData().radioStations.splice(0, getServerData().radioStations.length-1);
|
||||||
|
getServerData().radioStations = loadRadioStationsFromDatabase();
|
||||||
|
setRadioStationIndexes();
|
||||||
|
|
||||||
|
messageAdminAction(`All radio stations have been reloaded by an admin!`);
|
||||||
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user