DRE2N / DungeonsXL

Create custom dungeons and adventure maps with ease!
https://www.spigotmc.org/resources/dungeonsxl.9488/
GNU General Public License v3.0
152 stars 84 forks source link

requirements: feeLevel is invalid #1048

Closed Function-Z closed 2 years ago

Function-Z commented 2 years ago

Description

The requirements: feeLevel in the map's config.yml file is invalid (地图文件中的config.yml文件中requirements:feeLevel设置不能正确读取玩家的级别)

Reproduce

  1. Write the following code in the map's config.yml(在地图的config.yml中写下如下代码)
    requirements:
    feeLevel: 2
  2. Enter command /dxl reload at the console(后台输入指令/dxl reload)
  3. Ordinary players try to enter the dungeon(普通玩家尝试进入副本)
  4. Even if the player’s level actually meets the requirements, the chat bar still prompts that the level does not meet the requirements(即便玩家的等级实际上符合要求,聊天栏依然提示等级不满足要求)

Expected behavior

I hope that the level requirements can be used normally. Another suggestion is that the level requirements are divided into two modes, one is to enter a dungeon after reaching a certain level, and the other is to enter a dungeon after deducting a specified amount of level or experience. My English is not very well. These words are basically modified by translation, I also wrote the original text, I hope there is no problem with my expression 我希望等级需求能正常使用。 还有一个建议是等级需求分为两种模式,一种是达到某个等级可以进入副本,一种是扣除指定数量等级或经验才可以进入副本 我的英语不是很好,这些话基本都是由翻译修改来的,我还写了原文,希望我的表述没有什么问题

Screenshots / GIFs / videos

image

image

image

Relevant configuration files

requirements:
  feeLevel: 2
Sataniel98 commented 2 years ago

Thank you for the report. The bug is fixed.