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...
@mig4ng
All right i'll do that as soon as possible ..
Can you tell me how and for what you use this plugins ?
Regards,
add mysql support for storage :D
@MCBuncey
Thanks for your answer.
Don't hesitate to ask or return bugs, i keep in touch.
I don't upgrade a lot this plugin, only to be sure that it is compatible so don't be afraid i maintain it.
This plugin listen only one event from mcMMO that i must be careful about changes: McMMOPlayerLevelUpEvent, that's it.
Will be using this on my upcoming server.
The goal that will be handling this plugin on my server is to unlock mcmmo ability, and some item specified on the skill that got level along that on every level on each skill will be given 5 exp bottles and also probably + temp 1 hour 2x exp on reaching a certain power level to encourage the player even more.
so yea this plugin will be really important on my upcoming server. I have seen another similar plugin like this but this one seems to pack the needed features in one already no need anymore additional plugin and also its much more user friendly that's for me idk about the others
v1.1.0 is out !
Some cleanup has been made.
Permissions rewards had a strange bug when checking if player already has the permission node. Tested on Vault-1.2.19 and i don't check anymore if the player already has it because it doesn't work. So the permission node always added to your player but not duplicate.
Please let me know if you're using this plugin and its goal on your server.
Regards,
@boozaa
Ah I see thanks
@MCBuncey
Hi Vanmc, this is not errors but debug info about db bean for database storing of players rewards.
This looks good but for somehow im getting this on my console
17:09:53 [INFO] DataSourcePool [BoomcMMoReward] autoCommit[false] transIsolation [SERIALIZABLE] min[2] max[20]
@LeChuuck
In your pastie remove the [...] part.
Your yaml can be like this :
For example...
@LeChuuck
This is not what i expected...
It is useful to have your real malformed yaml file.
Of course you must remove the [..] parts which is to demonstrate that there can be some stuff here...
Please send you real yaml reward file and errors log.
http://pastebin.com/4Tf0wAyC
@LeChuuck
Can you post your yaml file on a pastebin site to look at ?
And if you want you can join irc chan #boo on irc.esper.net:6667 to talk directly.
This is what im trying to do...
conditions: [...] group: - +whatever
@LeChuuck
Please tell me more about what you want to do and eventually with your yaml file.
Basically a reward yaml file looks like this :
I dont know what im missing but i get errors when i try your code in yaml parser.
It's time to close the beta phase with this v1.0.1.
Now you can choose to store or not your player's rewards on the database and you can toggle it with a console command boomcmmoreward db.
A better console update notifier and some clean has been made.
Enjoy,
A new version comes, Beta v1.0.
Now all your players rewards are stored in a database and you can get a report per player with the console command :
boomcmmoreward db get Playername
The v1.0 introduce a new reward : the luckyKit !!
Now you can give a chance for your players to win a complete enchanted shield or a poor set of basic blocks..
To set a luckyKit take a look at the rewards explanation page !
The v0.9.5 comes with possibility to use modded items id on your reward files.
In the next release there will be :
There's an item id verification in place on the v0.9 for vanilla's items.
So id from modded items would not work, it will be solved on the next release.
@Katorone
It is an interesting idea and more realistic. I like it.
If you want to discuss about it and a way to do that feel free to join me on #boo on esper.net.