Skip to content

make config class #30

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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