This repository was archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.cs
More file actions
33 lines (28 loc) · 1.2 KB
/
Copy pathserver.cs
File metadata and controls
33 lines (28 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Checks prerequisites, executes all required scripts and initializes the server side.
// -------------------------------------------------------------------
if(forceRequiredAddOn("Tool_NewDuplicator") == $Error::AddOn_NotFound)
{
error("ERROR: Tool_NewDuplicator is required for Server_EnvironmentZones.");
schedule(1000, 0, messageAll, 'MsgError', "\c0ERROR: Tool_NewDuplicator is required for Server_EnvironmentZones.");
return;
}
if(ndCompareVersion($ND::Version, "1.6.1") == 2)
{
error("ERROR: Tool_NewDuplicator must be up-to-date for Server_EnvironmentZones.");
schedule(1000, 0, messageAll, 'MsgError', "\c0ERROR: Tool_NewDuplicator must be up to date for Server_EnvironmentZones.");
return;
}
if(!isFunction(NetObject, setNetFlag))
{
error("ERROR: SelectiveGhosting.dll is required for Server_EnvironmentZones.");
schedule(1000, 0, messageAll, 'MsgError', "\c0ERROR: SelectiveGhosting.dll is required for Server_EnvironmentZones.");
return;
}
exec("./scripts/zone.cs");
exec("./scripts/support.cs");
exec("./scripts/manager.cs");
exec("./scripts/commands.cs");
exec("./scripts/environment.cs");
activatePackage(EnvironmentZones);
if(!isObject(EnvironmentZoneGroup))
new ScriptGroup(EnvironmentZoneGroup);