teitss / PixelMoney

A plugin to enable pokemons money rewards
2 stars 1 forks source link

Permissions, Groups for rewards / Tag name #2

Closed PixelmonPRO closed 7 years ago

PixelmonPRO commented 7 years ago

Hello! There was an idea, why not make different awards for different groups? Add different permissions to the configuration, let's say:

Default {
    levelbased {
        # Enable/Disable per pokemon's level reward
        enabled=false
        # You can choose 'MULTIPLICATION', 'DIVISION', 'ADDITION' or 'SUBTRACTION'
        operation-type=MULTIPLICATION
        # Amount of money to be rewarded/Number to be used in levelbased's mathematical operations
        money=50
        # Basic priority for groups
        weight=1
        }
},
Helper {
    levelbased {
        # Enable/Disable per pokemon's level reward
        enabled=true
        # You can choose 'MULTIPLICATION', 'DIVISION', 'ADDITION' or 'SUBTRACTION'
        operation-type=MULTIPLICATION
        # Amount of money to be rewarded/Number to be used in levelbased's mathematical operations
        money=10
        # Basic priority for groups
        weight=2
        }
}

Added weight for rewards. The highest value will be in priority, so that the two factors are not confused. And added permission for group:

pixelmoney.reward.basic
pixelmoney.reward.(Specify a name from the configuration)

And I would very much like to be able to change the name of the message prefix :)

        # You can use Ampersanding Formatting(&1&2)
        tag-name="&c[PixelMoney]"

If not clear, sorry for my english :)

teitss commented 7 years ago

It's a good idea, I will implement. About change prefix name, I don't like it.

teitss commented 7 years ago

Pixelmoney v1.2