1.4.0

Release

Lergin released this version on Mar 25, 2017

144.5 KB
Download

This Version has introduced a Change in the configuration format: all abilities now require a type field that is set to the type of the ability (currently always effect). Also the actions (break, kill etc.) now have the items no longer directly under them but instead have these wrapped into the items setting which allows for more settings for actions in the future:

Before:

ability {
    cooldown=600
    name="Fast Destroy"
    potionEffect {
        ambiance=false
        amplifier=2
        duration=1200
        particles=true
        potionType="minecraft:haste"
    }
}

After:

ability {
    type=effect
    cooldown=600
    name="Fast Destroy"
    potionEffect {
        ambiance=false
        amplifier=2
        duration=1200
        particles=true
        potionType="minecraft:haste"
    }
}

Before:

actions {
    break=[
        {
            item = "minecraft:stone[variant=stone]"
            needLevel = 0
            xp = 1
        },
        {
            item = "minecraft:stone[variant=diorite]"
            needLevel = 5
            xp = 1.1
        }
    ]
}

After:

actions {
    break= {
        items = [
            {
                item = "minecraft:stone[variant=stone]"
                needLevel = 0
                xp = 1
            },
            {
                item = "minecraft:stone[variant=diorite]"
                needLevel = 5
                xp = 1.1
            }
        ]
    }
}

Changelog:

  • added a setxp command to set the xp of a player (/jobs setxp [job] [xp] [player])
  • added some additional logging messages that can be activated via the logging setting (see #26)
  • added an api to allow other plugins to add there own JobActions, JobBoni and JobAbilities (see the JavaDocs)
  • reworked a lot of internal structures to add the api
  • added a setting to activate a test if a jobitem is used in another job with the same action to allow the blocking if it is used in multiple jobs (alsoInOtherJob) (see #28)
  • fixed the removing of old Listeners on a reload (see #27)

Dependencies