Creates a server plugin.
The server events, a record mapping event names to their payload types.
The game state, a record mapping defining the types of the game state object.
The configuration type for the plugin.
The plugin to create.
The created plugin.
Creates a server plugin.