northwood-studios / NwPluginAPI

Official server-side plugin system for SCP: Secret Laboratory game.
GNU Lesser General Public License v3.0
78 stars 44 forks source link

Wrong arguments in PlayerInteractLocker #76

Closed Bujapetas closed 1 year ago

Bujapetas commented 1 year ago
[2022-12-15 00:48:45.131 +00:00] [Error] [PluginAPI] Event OnInteractWithLocker (PlayerInteractLocker) in plugin MyPlugin.Plugin contains wrong parameters
                                  - Player, Locker, Byte, Boolean
                                  - Required:
                                  - IPlayer.

I used the github template and only changed MyPlayer to Player.

MrAfitol commented 1 year ago

The same thing

zabszk commented 1 year ago

Are you sure that the server and the plugin use the same version of NwPluginAPI? You can check the API version used by the server by going to the server directory, then SCPSL_Data/Managed/, then right click PluginAPI.dll, select Properties, go to the Details tab and check Product version.

This repository is often ahead of the currently released SCP:SL Dedicated Server build. If you need to get a specific NwPluginAPI version you should view a specific tag instead of the master branch.

Bujapetas commented 1 year ago

Was fixed with the last version