|
@@ -61,9 +61,8 @@ module.exports = function FpsUtils(mod) {
|
|
|
if (!Xdone) {
|
|
if (!Xdone) {
|
|
|
if (Xarray[i].command) Xshove(`<a href='admincommand:/@${Xarray[i].command}'>${Xarray[i].text}</a>`)
|
|
if (Xarray[i].command) Xshove(`<a href='admincommand:/@${Xarray[i].command}'>${Xarray[i].text}</a>`)
|
|
|
else if (!Xarray[i].command) Xshove(`${Xarray[i].text}`)
|
|
else if (!Xarray[i].command) Xshove(`${Xarray[i].text}`)
|
|
|
- else console.log(`--v9-ERROR in Fps-Utils, pls report this.`)
|
|
|
|
|
- } else if (Xdone) break;
|
|
|
|
|
- else console.log(`---ERROR in Fps-Utils, pls report this.`)
|
|
|
|
|
|
|
+ else continue;
|
|
|
|
|
+ } else break;
|
|
|
}
|
|
}
|
|
|
return Xdata
|
|
return Xdata
|
|
|
}
|
|
}
|
|
@@ -127,12 +126,12 @@ module.exports = function FpsUtils(mod) {
|
|
|
TmpData = []
|
|
TmpData = []
|
|
|
TmpData.push(
|
|
TmpData.push(
|
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
|
|
{ text: `<font color="${PurpleClr}" size="+24"><p align="right">MAIN MENU</p></font><br>`, command: `fps gui` },
|
|
|
- { text: `<font color="${RedClr}" size="+16">Red</font><font color="${LPurpleClr}" size="+16"> = Shown, <font color="${GreenClr}" size="+16">Green</font><font color="${LPurpleClr}" size="+16"> = Hidden</font></font><br>`, command: `fps gui` },
|
|
|
|
|
|
|
+ { text: `<font color="${RedClr}" size="+16">Red</font><font color="${LPurpleClr}" size="+16"> = Shown, <font color="${GreenClr}" size="+16">Green</font><font color="${LPurpleClr}" size="+16"> = Hidden</font></font><br>` },
|
|
|
{ text: `<font color="${PinkClr}" size="+16">(Command </font><font color="${HPinkClr}" size="+16">"fps hide <name>"</font><font color="${PinkClr}" size="+16"> to hide someone that does not appear here)</font><br><br>` },
|
|
{ text: `<font color="${PinkClr}" size="+16">(Command </font><font color="${HPinkClr}" size="+16">"fps hide <name>"</font><font color="${PinkClr}" size="+16"> to hide someone that does not appear here)</font><br><br>` },
|
|
|
- { text: `<font color="${LBlueClr}" size="+19">Click on <font color="${RedClr}">Red</font> to hide & add to blacklist. | on <font color="${GreenClr}">Green</font> to show & remove from blacklist</font><br>` }
|
|
|
|
|
|
|
+ { text: `<font color="${LBlueClr}" size="+19">Click on <font color="${RedClr}">Red</font> to hide & add to blacklist.<br>Click on <font color="${GreenClr}">Green</font> to show & remove from blacklist</font><br>` }
|
|
|
)
|
|
)
|
|
|
for (let i in SpawnedPlayers) {
|
|
for (let i in SpawnedPlayers) {
|
|
|
- TmpData.push({ text: `<font color="${mod.settings.PlayersBlacklist.includes(SpawnedPlayers[i].name) ? GreenClr : RedClr}" size="+17">${SpawnedPlayers[i].name}</font>`, command: mod.settings.PlayersBlacklist.includes(SpawnedPlayers[i].name) ? `fps show ${SpawnedPlayers[i].name};fps gui show` : `fps hide ${SpawnedPlayers[i].name};fps gui show` })
|
|
|
|
|
|
|
+ TmpData.push({ text: `<font color="${mod.settings.PlayersBlacklist.includes(SpawnedPlayers[i].name) ? GreenClr : RedClr}" size="+17">${SpawnedPlayers[i].name}</font><br>`, command: mod.settings.PlayersBlacklist.includes(SpawnedPlayers[i].name) ? `fps show ${SpawnedPlayers[i].name};fps gui show` : `fps hide ${SpawnedPlayers[i].name};fps gui show` })
|
|
|
}
|
|
}
|
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Players </font><font color="${RedClr}">(In-distance)</font>`)
|
|
gui.parse(TmpData, `<font color="${LPurpleClr}">[FPS] Options - Players </font><font color="${RedClr}">(In-distance)</font>`)
|
|
|
TmpData = []
|
|
TmpData = []
|
|
@@ -353,8 +352,8 @@ module.exports = function FpsUtils(mod) {
|
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Disband]</font><br>`, command: `fps quicklink disband` },
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Disband]</font><br>`, command: `fps quicklink disband` },
|
|
|
{ text: `<font color="${DBlueClr}" size="+21">Extra:</font>	` },
|
|
{ text: `<font color="${DBlueClr}" size="+21">Extra:</font>	` },
|
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Lobby]</font>`, command: `fps quicklink lobby` },
|
|
{ text: `<font color="${CPinkClr}" size="+17">[Lobby]</font>`, command: `fps quicklink lobby` },
|
|
|
- { text: "		 " },
|
|
|
|
|
- { text: `<font color="${CPinkClr}" size="+17">[!!Instant Exit!!]</font><br>`, command: `fps quicklink instantexit` }
|
|
|
|
|
|
|
+ { text: "				 " },
|
|
|
|
|
+ { text: `<font color="${HPinkClr}" size="+17">[!! Instant Exit]</font><br>`, command: `fps quicklink instantexit` }
|
|
|
], `<font color="${LPurpleClr}">[FPS] Options</font> | <font color="${RedClr}" size="+16">Red</font><font color="${LPurpleClr}" size="+16"> = disabled, <font color="${GreenClr}" size="+16">Green</font><font color="${LPurpleClr}" size="+16"> = enabled</font>`)
|
|
], `<font color="${LPurpleClr}">[FPS] Options</font> | <font color="${RedClr}" size="+16">Red</font><font color="${LPurpleClr}" size="+16"> = disabled, <font color="${GreenClr}" size="+16">Green</font><font color="${LPurpleClr}" size="+16"> = enabled</font>`)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1278,7 +1277,7 @@ module.exports = function FpsUtils(mod) {
|
|
|
Msg(`Abnormal id '${arg2}'` + " Removed from the blacklist".clr(RedClr) + '.')
|
|
Msg(`Abnormal id '${arg2}'` + " Removed from the blacklist".clr(RedClr) + '.')
|
|
|
mod.settings.OwnAbnormalsBlacklist = mod.settings.OwnAbnormalsBlacklist.filter(obj => obj != arg2);
|
|
mod.settings.OwnAbnormalsBlacklist = mod.settings.OwnAbnormalsBlacklist.filter(obj => obj != arg2);
|
|
|
} else {
|
|
} else {
|
|
|
- Msg(`Abnormal id '${arg2}'` + " Added to the blacklist".clr(GreenClr) + ".")
|
|
|
|
|
|
|
+ Msg(`Abnormal id '${arg2}'` + " Added to the blacklist".clr(GreenClr) + '.')
|
|
|
mod.settings.OwnAbnormalsBlacklist.push(arg2)
|
|
mod.settings.OwnAbnormalsBlacklist.push(arg2)
|
|
|
}
|
|
}
|
|
|
return;
|
|
return;
|