Region configuration is not restored on restart #33


  • New
  • Defect
Open
Assigned to hellfire212
  • WizardCM created this issue Apr 27, 2014

    What version of Bukkit are you using? CraftBukkit version git-Spigot-1387 (MC: 1.7.8) (Implementing API version 1.7.5-R0.1-SNAPSHOT)

    What version of MineralManager are you using? MineralManager version 2.2.1

    Please give a brief description of the problem. The config.yml and region.yml work properly, and are saved without issue. However, when the server/plugin restarts, the region.yml is only partially restored. That is - the name of the region remains, but the selected "configuration" is not remembered.

    For example:

    Say you create a region

    • /mm create world entire entire 10 yes

    This makes

    regions:
    - ==: me.hellfire212.MineralManager.Region
      level: 10
      global: true
      name: entire
      configuration: entire
    

    Then you restart the server.

    Next time you list the regions, it shows this:

    [20:01:24 INFO]: [MineralManager] [Region List]
    [20:01:24 INFO]:     entire: World [level=10, config=DEFAULT]
    

    However, the regions.yml shows the same configuration it had before - that is, "entire". It has restored everything but the most important part - the selected configuration. I have tried setting the configuration in the config.yml to be named DEFAULT and it still does not remember what blocks to protect.

  • WizardCM added the tags New Defect Apr 27, 2014
  • WizardCM posted a comment May 20, 2014

    Figured out the issue.

    Only ONE place in the code converts it to lowercase, and that breaks any configuration.

    Specifically, https://github.com/kirchne5/MineralManager/blob/master/src/main/java/me/hellfire212/MineralManager/MineralManager.java#L165


To post a comment, please login or register a new account.