#Problem with ServerSpecific

1 messages · Page 1 of 1 (latest)

oak salmon
#

Hello,
I’m running into an issue when trying to use UserSettings.ServerSpecific.SSKeybindSetting inside my plugin PRoleAPI.

When activating the plugin, it fails with the following error:

System.MissingMethodException: Method not found: 
Void UserSettings.ServerSpecific.SSKeybindSetting..ctor(System.Nullable`1<int>, string, UnityEngine.KeyCode, bool, string)
[2025-09-18 14:50:26.921 +03:00] [INFO] [PRoleAPI] Registering ability keybinds...
[2025-09-18 14:50:26.931 +03:00] [ERROR] [LabApi] [LOADER] Couldn't enable the plugin 'PRoleAPI', Version: 1.0.0, Author: 'Pelmenbit'
[2025-09-18 14:50:26.941 +03:00] [ERROR] [LabApi] System.MissingMethodException: Method not found: void UserSettings.ServerSpecific.SSKeybindSetting..ctor(System.Nullable`1<int>,string,UnityEngine.KeyCode,bool,string)

Code that triggers the issue:

SSKeybindSetting keybind = new SSKeybindSetting(
    ability.Id,
    label: ability.Name,
    ability.DefaultKeybind
);
glass blade
#

you're on an outdated version probably

#

update ur labapi reference

#

oh actually

oak salmon
#

got it

glass blade
#

thats basegame reference nvm

#

update ur basegame

#

if ur publicizing u need to publicize again

vapid fox
#

Make sure your using the latest Assembly-csharp dll

glass blade
#

and then compile

#

ya

oak salmon
#

Do I also need to update Assembly-CSharp-Publicized.dll after updating the basegame Assembly-CSharp.dll?

#

if yes, could you share the updated Assembly-CSharp-Publicized.dll pls emoji_48

vapid fox
#

Do you have it publicized already?

wind vector
#

Most of us use bepinex publicizer

oak salmon
#

i fix it