Skip to content

[BUG] Configs assume plugin is in /plugins/ folder #3

Description

@kus

I run your plugin from the /addons/counterstrikesharp/plugins/disabled/ folder as I only want it on sometimes and manually trigger it to load.

Due to the way you get the config path, it creates the configs in /addons/counterstrikesharp/plugins/configs/ instead of using the correct configs path /addons/counterstrikesharp/configs/.

This is the culprit line:

_moduleDirectory = Path.Combine(_plugin.ModuleDirectory, "../../configs/plugins/RollTheDice");

CSSharp now has standardised ways to get the config path since you last worked on the plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions