mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Make sure some mods are loaded last
This commit is contained in:
parent
bbb9e0a57b
commit
7e18315fdc
13
manager.js
13
manager.js
@ -23,7 +23,18 @@ Server.prototype.armaServerPath = function() {
|
||||
};
|
||||
|
||||
Server.prototype.makeModsParameter = function() {
|
||||
return '-mod=' + this.mods.join(';');
|
||||
var mods = this.mods;
|
||||
|
||||
["@a3mp", "@a3mp_ap", "@agm"].forEach(function (modToMoveLast) {
|
||||
if (mods.indexOf(modToMoveLast) > -1) {
|
||||
mods = mods.filter(function (mod) {
|
||||
return mod != modToMoveLast;
|
||||
});
|
||||
mods.push(modToMoveLast);
|
||||
}
|
||||
});
|
||||
|
||||
return '-mod=' + mods.join(';');
|
||||
};
|
||||
|
||||
Server.prototype.makePortParameter = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user