serverConfigTopLevelEntry: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Some wiki formatting)
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:
|gr1= Argo
|gr1= Argo


|descr= Get top-level entry (i.e. entry directly below config root) of the desired name from the {{Link|server.cfg|server config}}, making it some kind of secured '''''serverConfigFile''''' command.
|descr= Get top-level entry (i.e. entry directly below config root) of the desired name from the {{Link|Arma 3: Server Config File|server config}}, making it some kind of secured '''''serverConfigFile''''' command.


|mp= Only works on '''dedicated''' servers.
|mp= Only works on '''dedicated''' servers.
Line 14: Line 14:
|s1= [[serverConfigTopLevelEntry]] configEntry
|s1= [[serverConfigTopLevelEntry]] configEntry


|p1= configEntry: [[String]] - any [[server.cfg]] entry but {{hl|password}} and {{hl|passwordAdmin}} which are ignored
|p1= configEntry: [[String]] - any [[Arma 3: Server Config File|server config]] entry but {{hl|password}} and {{hl|passwordAdmin}} which are ignored


|r1= [[Config]] - requested server config entry or [[configNull]] on error
|r1= [[Config]] - requested server config entry or [[configNull]] on error
Line 20: Line 20:
|x1= <sqf>_kickDupes = getNumber serverConfigTopLevelEntry "kickDuplicate" != 0;</sqf>
|x1= <sqf>_kickDupes = getNumber serverConfigTopLevelEntry "kickDuplicate" != 0;</sqf>


|seealso= [[configFile]] [[config greater greater name|config >> name]]
|seealso= [[Arma 3: Server Config File]] [[configFile]] [[config greater greater name|config >> name]]
}}
}}

Latest revision as of 13:58, 17 May 2024

Hover & click on the images for description

Description

Description:
Get top-level entry (i.e. entry directly below config root) of the desired name from the server config, making it some kind of secured serverConfigFile command.
Multiplayer:
Only works on dedicated servers.
Groups:
Argo

Syntax

Syntax:
serverConfigTopLevelEntry configEntry
Parameters:
configEntry: String - any server config entry but password and passwordAdmin which are ignored
Return Value:
Config - requested server config entry or configNull on error

Examples

Example 1:
_kickDupes = getNumber serverConfigTopLevelEntry "kickDuplicate" != 0;

Additional Information

See also:
Arma 3: Server Config File configFile config >> name

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note