diff --git a/EXILED/Exiled.API/Features/Respawn.cs b/EXILED/Exiled.API/Features/Respawn.cs index 82282435c..2430d5bd9 100644 --- a/EXILED/Exiled.API/Features/Respawn.cs +++ b/EXILED/Exiled.API/Features/Respawn.cs @@ -326,6 +326,34 @@ public static bool SetTokens(SpawnableFaction spawnableFaction, int amount) return false; } + /// + /// Grants influence to a given 's s. + /// + /// The to whose s to grant influence. + /// The amount of influence to grant. + public static void GrantInfluence(Faction faction, int amount) => FactionInfluenceManager.Add(faction, amount); + + /// + /// Removes influence from a given 's s. + /// + /// The from whose s to remove influence. + /// The amount of influence to remove. + public static void RemoveInfluence(Faction faction, int amount) => FactionInfluenceManager.Remove(faction, amount); + + /// + /// Get influence to a given . + /// + /// The to get influence. + /// Get the faction influence.. + public static float GetInfluence(Faction faction) => FactionInfluenceManager.Get(faction); + + /// + /// Set influence to a given . + /// + /// The to set influence. + /// The amount of influence to set. + public static void SetInfluence(Faction faction, float influence) => FactionInfluenceManager.Set(faction, influence); + /// /// Starts the spawn sequence of the given . ///