Boo mcMMo Reward
You want to give some money for users who reach the mcMMO level 250 ?
Or you want this user to be granted to a new group ?
Or just give them some items or greetings message ?
Giving some items enchanted or not ?
Giving some items with damage value or not ?
Give their 1 chance to 10 to win a bonus items or 1 chance sur 100 ?
...
...Yes it's possible...
Perhaps just adding one permission to this users is enough ?
Or there isn't enough and you want to launch some admin console commands after that ?
...Yes it would be possible..
What is it?
English:
BoomcMMoReward is an addon for mcMMO.
It gives you abilities to distribute rewards for all mcMMO's player level up with or without conditions.
Available Conditions
- money ( > or < amount ) - Vault required
- perm ( has or has not specific permission ) - Vault required
- group ( is on a specific group or not ) - Vault required
- POWER level ( > or < specific POWER level )
- SKILL level ( > or < for multiple SKILL level )
- world ( if in specific World )
Available Rewards
- money ( give specific amount with an optional sender ) - Vault required
- lotteryMoney ( % of chances to win amount ) - Vault required
- perm ( give/remove permissions or permissions for specific world ) - Vault required
- group ( add/remove from specific groups ) - Vault required
- item ( give items, you can set quantity/damage/enchantments )
- luckyItem ( an item randomly choose from a list of items )
- lotteryItem ( % of chances to win item )
- luckyKit ( a kit of items randomly choose from a list of kits )
- message ( you can send mp/broadcast/log with color )
- command ( for advanced user you can launch console command )
French:
BoomcMMoReward est un addon pour mcMMO.
Il vous permet de distribuer des récompenses à chaque level up mcMMO de vos joueurs sous conditions ou non.
Conditions disponibles
- money ( > ou < montant ) - Vault required
- perm ( doit avoir ou pas des permissions spécifiques ) - Vault required
- group ( doit être ou pas dans des groupes ) - Vault required
- POWER level ( > ou < à tel niveau de POWER )
- SKILL level ( > ou < à tel niveau pour des SKILLS spécifiques )
- world ( si il est dans tel Monde )
Rewards disponibles
- money ( verser un montant en précisant en option qui paye ) - Vault required
- lotteryMoney ( % de chances de gagner un montant ) - Vault required
- perm ( donner/retirer des permissions spécifiques à un Monde ou pas ) - Vault required
- group ( ajouter/retirer de groupes ) - Vault required
- item ( donner des items (quantité/damage/enchantements incluts) )
- luckyItem ( un item tiré au hasard dans une liste d'items définie )
- lotteryItem ( % de chances de gagner un item )
- luckyKit ( un kit d'items choisis au hasard dans une liste de kits )
- message ( envoyer des mp/broadcast/log avec coloration classique )
- command ( pour les utilisateurs avancés vous pouvez envoyer des commandes consoles )
How it works?
English:
When a player level up a skill he level up his global level.
The plugin do:
- a search on POWER/ONE folder if there is a reward file for the reached global level
- a search on POWER/EVERY folder if there is a reward file multiple of the reached global level
- a search on SKILLS/skill/ONE folder if there is a reward file for this skill level itself
- a search on SKILLS/skill/EVERY folder if there is a reward file multiple of this skill level itself
If the plugin find a reward file it deals with it.
French:
Quand un joueur gagne un niveau en compétence son POWER global augmente de même.
Ce plugin fait:
- une recherche de fichier reward dans POWER/ONE pour voir si il en trouve un pour le niveau POWER atteint
- une recherche de fichier reward dans POWER/EVERY pour voir si il en trouve un multiple du niveau POWER atteint
- une recherche de fichier reward dans SKILLS/skill/ONE pour voir si il en trouve un pour le niveau de la compétence en question atteint
- une recherche de fichier reward dans SKILLS/skill/EVERY pour voir si il en trouve un multiple du niveau atteint pour la compétence en question
Si il trouve un fichier reward il l'exécute.
Depends
English:
Of course it depends on mcMMO and Vault for permissions/money.
French:
Bien entendu il dépend de mcMMO et de Vault pour les permissions/money.
Documentation
Version | Docs | |
---|---|---|
Introduction | ||
BoomcMMoReward-1.1.x | English | |
BoomcMMoReward-2.0.x | English / French | |
Conditions section | ||
BoomcMMoReward-1.1.x | English | |
BoomcMMoReward-2.0.x | English / French | |
Rewards section | ||
BoomcMMoReward-1.1.x | English | |
BoomcMMoReward-2.0.x | English / French | |
Examples | ||
BoomcMMoReward-1.1.x | English | |
BoomcMMoReward-2.0.x | English / French |
Commands
English:
A console only command to toggle debug mode when server is started :
boomcmmoreward debug
A console command to On/Off database storing of player's rewards:
boomcmmoreward db
A console only command to retrieve history per player :
boomcmmoreward db get playerName
French:
Une commande en console pour activer/désactiver le debug :
boomcmmoreward debug
Une commande en console pour activer/désactiver le stockage en base de données:
boomcmmoreward db
Une commande en console pour consulter historique d'un joueur :
boomcmmoreward db get playerName
Last Release
v2.0.5b
Current Beta release.
Fixes lottery message's part and ormlite log output's path.
v2.0.4b
Bugged version on Loterry message's part and path of ormlite output log.
v2.0.3b
Prerequisites:
Vault and mcMMO of course.
Installation
- put the .jar on your plugins folder
- start your server it will create the folder structure
- no need to restart your server, create some yml rewards file and put them where they must be
Upgrade Instructions
This release has an integrated system to backup your reward files but PLEASE MAKE A BACKUP BY YOUR OWN TOO because it is a beta.
- put the .jar on your plugins folder
- on start it backup your reward files and adapt them to a new concept for multiple scenario if you upgrade from v1.x
- start your server it will create the folder structure
Your config.yml will be updated.
New 'ABILITIES' folder to reward on ability's launch and skill and power level based.
Need help to setup your reward ?
Feel free to join me at #boo on esper.net and hl me.
You can join this channel with this link if you don't have an IRC client: http://chat.mibbit.com/?channel=%23boo&server=irc.esper.net
Source
https://github.com/boozaa/BoomcMMoReward
Servers known running BoomcMMoReward
If you use this plugin and want to add your banner here please pm me...
@boozaa Great, I'll be testing this out asap, and give feedback.
Yes, the decreasing of stats should happen in the way you described. Except that I'm decreasing each skill, as to emulate an athlete who stops training. In a more realistic setup I'd love to decrease each skill after it hasn't been used in a while, but that's impossible to do through a shell script. With this setup someone would have to keep training their skills regularly or they would go down. For instance, someone who doesn't gain swordfighting XP in over a week could get a decrease of 1% each day. After two weeks it would be 2%, 4 weeks 5% etc.
I understand that this is very specific and not really in the scope of this plugin. I guess I'm just trying to get others warm to the idea. :-)
@Katorone You can already in your 'rewards' part set some negative permission that's mean you can remove permission already.
For multiple skills conditions you can use a list of skill :
Please tell me if it works like you want.
I have already done a plugin to check inactive player but not posted on dev.bukkit.
If i understand well you need a plugin who :
If i'm not wrong i thinl it will not be integrate on BoomcMMoReward because too specific, perhaps another one.
Awesome plugin! Would it be possible (eg in a future version) to give and take permissions based on multiple levels? For instance, if mining, excavating and woodcutting is > 500 then add a permission. On our server we decrease mcmmo stats of people who are inactive for a while, so removal of permissions would be an awesome feature.
I'm currently using a very 'dirty' method for decreasing mcmmo levels, it's basically a shell script that executes mmoedit for each player who lastjoined more than 4 weeks ago. This script runs once every day and decreases stats with 5%. If you like this (configurable) idea, it would be great to have this done by a plugin. The main reason why we do this is to clean up the database and to make sure the mctop isn't filled with players who've moved on.
New v0.9 comes with the addition of the damage part for items with damage value.
For your items with damage edit the item part and use this pattern:
ItemId/Damage:Quantity:enchantmentId:Multiplier
So for 4 x Red Wool the sentence is : '35/14:4'
For a Fortune III Diamond Axe it will be : '278:1:35:3'
For an apple it will be : '260'
For 10 x apple it will be : '260:10'
Added the lotteryMoney too.
It is a reward so you can add it on the 'rewards' part of your reward file.
Same as the lotteryItems you can define 'probability' to add more or less chances to your player.
You can only set one 'amount'.
If you add a 'messages' part in your lotteryMoney as lotteryItems it will be processed if the player win this bonus. In this 'messages' you can use the pseudo variable '%amount%' it will be rendered with the amount win.
For the next major release i want to integrate history per player.
By keep history i mean per player :
store all bonus that he has win by level ascension
If you have some demands or ideas feel free to participate.
@m1cr0man
I'm trying to reproduce it.
In the next release a config version number will be integrated to facilitate addition of new parameters.
@Krallnyx
For now only items reward on lotteryItems like the name :p
You will can on next release with lotteryMoney.
It's highly possible that will be some yaml modifications to integrate the damage value of items too.
Is that possible to reward money on lottery ?
This power/every/100.yml this to reward only 10, never 20 (dicefaces:10, tests with probaiblity = 1 or 10, never 20 money)
rewards:
messages:
mp:
- '&3Tu viens de passer au level %power% au total tu reçois &610po &3pour fêter ça.'
money:
amount: 10
lotteryitems:
probability: 1
money:
amount: 10
messages:
mp:
- '&7Chance !&3Tu remportes le double'
I may have found one more bug with beta 0.8.5, not major :P. The config keeps restoring to default every time I edit it.
Thanks for the update!
@m1cr0man
Ok i think i found the reason and fixed that.
I will upload a fixed version to here.
If you want to test it before you can download it here.If you can use this version please tell me.
Edit: i uploaded v0.8.6 on this page. Thanks
@boozaa
No, thats what I found weird too. It'd be quicker talking about this on an irc, can you join #m1help on esper.net?
@m1cr0man
Thank you.
First of all the error message is not very welll because
'-Testing if user's MINING level is > 100'
'Condition Skill bad formatted'
Can be for 2 reasons:
The error part on 2.yml:
Are you using a 'World' condition on your 'conditions' part ?
@boozaa
Uploading, ill edit this once im done.
EDIT: http://pastebin.com/YX5jXuGx. 1.yml checks for rank +100, 2.yml checks for +5 and -100.
@m1cr0man Please yes if you can send me the debug part.
@sheepwool7
You can manipulate group access too on conditions part and rewards part like that :
Understand : player must be in 'sysop' group and must not be in 'default' group.
Understand: add the player to group 'jumper' and remove him from the group 'default'
It'd be cool to exclude a certain group from a reward.
@boozaa
Ah ok. I decided just to use a multiplier of 1 after users get past rank 100. However I've setup the 2.yml like this:
I'm still not getting the reward. Im looking at the debug in the console and it doesn't seem to be checking the reward, Ill upload the debug if you need it.
Sorry m1cr0man i edited my last answer to add some reflexions about a way to do what you want.
@boozaa
Great :D I'd say I could use a different multiplier for the higher rank. Thanks for adding the feature.