TShock/TShock — Issue #410: Compiled plugins missing methods
Author: stevenh
Created: 2012-02-24 01:42:17+00:00
State: open

Due to the way csharp handles optional parameters, it compiles them into the caller instead of the callee, the addition of additional optional parameters to methods such as Utils.Ban and Utils.Kick causes missing method errors for plugins compiled against older versions.

The fix for this seems to be to add in method signatures which match that of the original method but without and defaults.

I'll test this tomorrow and commit a fix if this passes. More details can be found in forum thread here:-
http://tshock.co/xf/index.php?threads/current-dev-version-not-working.1143/#post-11194

It should also be noted that this means changing the default value of a option argument is also dangerous as all plugins which call it would need to be recompiled against the new version before the change would be picked up.