Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Setting a minimum number of players to start a game doesn't work #473

Open
VIQingNiao opened this issue Nov 2, 2024 · 2 comments
Labels
bug: unconfirmed A bug that hasn't yet been recreated in a test environment.

Comments

@VIQingNiao
Copy link

Contact Details

[email protected]

What happened?

In the competitions.yml file, change the configuration 'minimum-players: 4', the match will start when the time is up regardless of the number, unless the server doesn't have any players and there are no errors in the server console, in the competitions.yml file, only configuring the 'minimum- players: ' in the competitions.yml file, only configure 'minimum-players: ' does not have any effect, all other configurations function normally, how to make 'minimum-players: ' can have normal effect, can you help me how to solve it?

Version

1.7.4

Development Version

even-more-fish-1.7.4-138

Server Version

purpur-1.21-2284

Java Version

21

Relevant log output

``competitions:
  钓鱼比赛:
    # What type of competition it is,
    # LARGEST_FISH: 谁钓的单个渔获最重
    # RANDOM: 随机模式
    # MOST_FISH: 渔获累计数量最多
    # SPECIFIC_RARITY: 最先捕获特定稀有渔获
    # LARGEST_TOTAL: 谁的渔获总重量最多
    # SPECIFIC_FISH: 最先捕获特定渔获
    type: LARGEST_FISH
    # 一场钓鱼比赛持续的时间,单位:分钟.
    duration: 30
    # 参与钓鱼比赛最低人数设置,只有服务器玩家大于等于这个数值才会举行
    minimum-players: 4
    # Which rarities can be selected by the plugin to be the chosen fish, keep in mind that the number of fish in that rarity and the weight of the
    # rarity will affect how easy it is to get the specific fish and may require a longer competition duration
    allowed-rarities:
      - '劣质'
      - '普通'
      - '不凡'
      - '黄金'
      - '虚空'
      - '隐火'
    # ALlows for specific times to be set, if your competition isn't running, make sure it isn't set to start during another competition.
    # The timezone for these is whichever timezone your server is set to.
    days:
      Monday:
      - 21:00
      Tuesday:
      - 21:00
      Wednesday:
      - 21:00
      Thursday:
      - 21:00
      Friday:
      - 21:00
      Saturday:
      - 9:35
      - 21:00
      Sunday:
      - 21:00
    # You might want to set custom rewards for each competition, especially if you've got number-needed set to greater than 1
    rewards:
      '1':
      # Commands are run by the console, it's advised to change these rewards before releasing your server.
      - 'COMMAND:plis giveProtectionCard 3 {player}'
      - 'COMMAND:plis giveEnchantedCokes 10 {player}'
      - 'MESSAGE:&a恭喜获得第一名!'
      - 'ITEM:DIAMOND,3'
      # Can't contain decimals.
      - 'MONEY:500'
      # formatted as 'effect_name,amplifier,duration', view a list of effects: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
      - 'EFFECT:SPEED,2,5'
      '2':
      - 'COMMAND:plis giveProtectionCard 2 {player}'
      - 'COMMAND:plis giveEnchantedCokes 10 {player}'
      - 'EFFECT:SPEED,2,3'
      - 'ITEM:DIAMOND,2'
      - 'MESSAGE:&b恭喜获得第二名!'
      - 'MONEY:300'
      '3':
      - 'COMMAND:plis giveProtectionCard 1 {player}'
      - 'COMMAND:plis giveEnchantedCokes 10 {player}'
      - 'EFFECT:SPEED,1,3'
      - 'ITEM:DIAMOND,1'
      - 'MESSAGE:&e恭喜获得第三名!'
      - 'MONEY:100'
    participation:
      - 'MESSAGE:&e未能进入前三名,给你个小保底,祝你下次好运 :)'
      - 'COMMAND:plis giveEnchantedCokes 1 {player}'
 # Add as many more places as you need

 # 需要捕获多少条特定的鱼才能赢得比赛? (默认为 1)
 # 任何大于 1 的值都将允许 /emf top 适用于此竞争类型。
 # 这是用于 /emf admin competition start <time> specific_fish 所需的数量值
    number-needed: 1
    bossbar-colour: YELLOW
    bossbar-prefix: '&a钓鱼大赛&b(谁单个渔获最重)&7-&f矿区水域: '

  # 钓鱼比赛所指定的世界
    required-worlds:
      - 'world_ZY'

# ATTENTION ATTENTION ATTENTION
# DO NOT EDIT THIS VALUE UNLESS YOU'RE UPDATING THE CONFIG.
config-version: '2'

Relevant screenshots

No response

@VIQingNiao VIQingNiao added the bug: unconfirmed A bug that hasn't yet been recreated in a test environment. label Nov 2, 2024
@sarhatabaot
Copy link
Collaborator

Can you try setting your competition name to use only english letters?

@VIQingNiao
Copy link
Author

Can you copy the part you want to change and get back to me?
I have modified

competitions. 钓鱼比赛.
# ``What type of competition it is,''

to

competitions. 123.
# What type of competition it is, #

But it's just as ineffective.

@VIQingNiao VIQingNiao reopened this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: unconfirmed A bug that hasn't yet been recreated in a test environment.
Projects
None yet
Development

No branches or pull requests

2 participants