PikaMug / Quests

Easy-to-use, open-source plugin for the creation and execution of quests on Minecraft servers.
https://modrinth.com/plugin/quests.classic
MIT License
141 stars 104 forks source link

"/qa reload" only reloads language set in config.yml #2220

Closed barannnnnns closed 3 weeks ago

barannnnnns commented 4 weeks ago

What is your Quests version / build number (do not say "latest")?

5.0.2-b469

Describe the problem and how to replicate it.

This is how the error is generated.

1-Install the quest and questbar plugin. 2-Change Minecraft language to Turkish. 3-Give yourself the quest "Iron Miner". 4-Replace an expression from the Turkish language file. (file: tr_TR) (I changed the "break:" part.) 5- then use the /qa reload command. (result: The new configuration was not loaded.)
This happens when the configuration is set to "language: en-US" and "language-override-client: false".

To solve this situation, we need to set the "language:" option to our own language or set it to "language-override-client: true". This isn't a huge bug, but I just felt the need to report it. At least a note about this can be added to the plugin or this situation can be fixed.

I hope this information helps.

Any console errors to share?

nope

If applicable, can you provide an example quest from quests.yml?

default1:
    name: Iron Miner
    ask-message: <yellow>Mine <pink>2<yellow> blocks of <pink>Iron Ore<yellow>.
    finish-message: <yellow>Well done. Here is your reward.
    redo-delay: 1800
    requirements:
      items:
      - ==: org.bukkit.inventory.ItemStack
        v: 3465
        type: STONE_PICKAXE
      remove-items:
      - false
      fail-requirement-message: <red>You must have a <pink>Stone Pickaxe<red> first.
    stages:
      ordered:
        '1':
          break-block-names:
          - IRON_ORE
          break-block-amounts:
          - 2
          break-block-durability:
          - 0
    rewards:
      money: 1000
      quest-points: 1
PikaMug commented 4 weeks ago

Does this only happen if QuestsBar is also installed?

PikaMug commented 4 weeks ago

Also, see if this build helps: https://ci.codemc.io/job/PikaMug/job/Quests/473/

barannnnnns commented 3 weeks ago

Working properly. Thank you.