61 lines
2.0 KiB
JavaScript
Raw Normal View History

2021-05-28 17:19:31 +02:00
/*
エレシュキガル
*/
"use strict";
const DontNukeMyModPlz = []
class OtherModifications {
static ApplyVariousModifications() {
const config = require("../config/config.json");
if (config.other.CompatibilityMods.CardGameMod === true) {
DontNukeMyModPlz.push("cgm_")
} else if (config.other.CompatibilityMods.TerragroupSpecialist === true) {
DontNukeMyModPlz.push("terragroupSpecialist")
} else if (config.other.CompatibilityMods["CoD MW - Mil-Sim: CTSFO I"] === true) {
DontNukeMyModPlz.push("ctsfo1")
} else if (config.other.CompatibilityMods["Additionnal Gear - Tan"]) {
DontNukeMyModPlz.push("AddGearTan")
} else if (config.other.CompatibilityMods["Additionnal Gear - Black"]) {
DontNukeMyModPlz.push("AddGearBlack")
} else if (config.other.CompatibilityMods["Additionnal Gear - Untar"]) {
DontNukeMyModPlz.push("AddGearUntar")
} else if (config.other.CompatibilityMods["Additionnal Clothing"]) {
DontNukeMyModPlz.push("AdditionalClothing")
} else if (config.other.CompatibilityMods["Andrudis Quest Maniac"]) {
DontNukeMyModPlz.push("Ammo_Proficiency")
}
}
static IsThisIDaMod(id) {
if (DontNukeMyModPlz.length > 0) {
for (const mod in DontNukeMyModPlz) {
if (id.includes(DontNukeMyModPlz[mod])) {
return true;
} else {
return false
}
}
} else {
return false
}
}
static CustomWarning(prefix, text, suffix = "") {
Logger.log("[" + prefix + "]" + text + " " + suffix, "white", "red")
}
static IsStolenModsLoaded() {
if (ModLoader.onLoad.SVM) {
this.CustomWarning("AIOMod","You have loaded a stolen mod on your server. Please remove SVM from your modlist in order to use this mod.")
return true;
} else {
return false
}
}
}
module.exports = OtherModifications;