MobHunting

MobHunting

114k Downloads

YAML issue config 5.4.7

SlimeDog opened this issue ยท 3 comments

commented

Spigot 1.12.2
MH 5.4.7-b577

One class of nodes is preceded by hyphen: commands.chance. Why the difference?

For example

mobs:
  blaze:
    enabled: true
    message: You got a Blaze skull and an Iron ingot.
    money:
      amount: '100.0'
      chance: 1.0
    commands:
    - chance: '0.0'
      cmd: give {player} iron_ingot 1
      message: ''
    - chance: '0.0'
      cmd: mobhunt head give {player} Blaze Blaze 1 silent
      message: ''
commented

This is because it is a java List its not possible to change this. Each set of commands start with a hyphen.

- chance: '0.0'
  cmd: give {player} iron_ingot 1
  message: ''

and

- chance: '0.0'
  cmd: mobhunt head give {player} Blaze Blaze 1 silent
  message: ''
commented

Its not a bug.

commented

Thanks for explaining.