#W# Factions: Disabled the faction regions.
This commit is contained in:
parent
4160a83eaa
commit
08fd68b9d0
3 changed files with 10 additions and 3 deletions
|
|
@ -104,6 +104,7 @@
|
|||
"world.enableAutoRestart": "False",
|
||||
"world.savePath": "Saves",
|
||||
"world.useMultithreadedSaves": "True",
|
||||
"opl.enable": "Core.AOS"
|
||||
"opl.enable": "Core.AOS",
|
||||
"factions.enabled": "False"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ public class FactionSystem : GenericPersistence
|
|||
{
|
||||
Enabled = ServerConfiguration.GetSetting("factions.enabled", false);
|
||||
|
||||
if (!FactionSystem.Enabled)
|
||||
return;
|
||||
|
||||
if (Enabled)
|
||||
{
|
||||
_factionSystem = new();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@ public class StrongholdRegion : BaseRegion
|
|||
Faction = faction;
|
||||
GoLocation = faction.Definition.Stronghold.FactionStone;
|
||||
|
||||
Register();
|
||||
if (FactionSystem.Enabled)
|
||||
{
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
public Faction Faction { get; set; }
|
||||
|
|
@ -42,4 +45,4 @@ public class StrongholdRegion : BaseRegion
|
|||
}
|
||||
|
||||
public override bool AllowHousing(Mobile from, Point3D p) => false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue