From 24c0edcbcb9163a1bc39cf72e2c33483ba01f675 Mon Sep 17 00:00:00 2001 From: speedis Date: Fri, 16 Feb 2018 22:50:19 +0100 Subject: [PATCH] Added servers stats SetAchievement --- Facepunch.Steamworks/Server/Stats.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Facepunch.Steamworks/Server/Stats.cs b/Facepunch.Steamworks/Server/Stats.cs index 2238205..e30a22d 100644 --- a/Facepunch.Steamworks/Server/Stats.cs +++ b/Facepunch.Steamworks/Server/Stats.cs @@ -112,8 +112,18 @@ public float GetFloat( ulong steamid, string name, float defaultValue = 0 ) return data; } + /// + /// Unlocks the specified achievement for the specified user. Must have called Refresh on a steamid first. + /// Remember to use Commit after use. + /// + public bool SetAchievement( ulong steamid, string name ) + { + return server.native.gameServerStats.SetUserAchievement( steamid, name ); + } + /// /// Resets the unlock status of an achievement for the specified user. Must have called Refresh on a steamid first. + /// Remember to use Commit after use. /// public bool ClearAchievement( ulong steamid, string name ) {