Skip to content

make config class #30

@ctooley21

Description

@ctooley21

ideally want to remove so much unnecessary chaining of objects, i.e passing around an instance of SpawnerShop to a bunch of other class when we really just need config options.
would be great to use enums, but not sure how.

current bad instances:
valid = sign.getLine(0).equalsIgnoreCase(spawnerShop.util.translateColors(spawnerShop.config.getString("options.sign-title"))); (in shopsign)
plugin.config.getString("options.no-permission")) (all over listeners)

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