Friday, September 20, 2024 2:48:37 AM
> settings

Customize


Authenticate

> ExileServerManager_system_territory_handleModeration.sqf
/**
 * ExileServerManager_system_territory_handleModeration
 *
 * Bryan
 * www.arcasindustries.com
 * © 2017 Arcas Industries
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */

private["_option", "_flagID", "_flagObject"];
_option = _this select 0;
_uid = _this select 1;
_flagID = parseNumber(_this select 2);
try
{
	_flagObject = _flagID call ExileServerManager_util_getFlagObject;
	if (isNull(_flagObject)) then
	{
		throw format["Could not find territory flag for database ID %1", _flagID];
	};
	[_flagObject, _uid, [1,2] select (_option isEqualTo "add")] call ExileServer_system_territory_updateRights;
}
catch
{
	_exception call ExileServerManager_util_log;
};
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8