I'm having an issue writing a plugin for a game - C#