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...
Could you add a %group% variable to messages? It would display your most recent group. Useful for after promoting it would tell you your new rank.
@olivier_firelook
Perhaps it is available now for you.
Peut être que c'est ok là
@olivier_firelook
Strange i set minimal permissions features on forum part.
I will found a way...
@boozaa
je n'ai pas accès au forum
@mrelfire
I made a little more complex example here : http://dev.bukkit.org/server-mods/boomcmmolvlup/forum/49627-examples-of-reward-v2/#p3
En combinant plusieurs aspects du plugin tu peux te faire ton propre système de Métiers avec carrière par exemple.
Tu peaufines le tout et peut prévoir de distribuer des permissions particulières selon le niveau dans métier par exemple.
Dans ces permissions tu peux jeter un oeil sur les habiletés particulières de mcMMO pour ne les donner qu'à certains niveau de métier.
Voila, je t'ai pris l'exemple de métier mais je tacherais de te proposer d'autres choses par la suite.
@MCBuncey
It's a typo on my side on the version file to inform you about update on dev.bukkit, i take a look.
Yes it is my fault sorry, please delete your file 'plugins/BoomcMMoReward/latest.yml'.
You can also disable the update notifier too on your config.yml, as you choose.
What this error means?
2013-03-05 02:50:55 [INFO] [BooKnowInactivePlayer] Error while loading file 'plugins/BoomcMMoReward/latest.yml': 2013-03-05 02:50:55 [SEVERE] org.bukkit.configuration.InvalidConfigurationException: while parsing a block collection in "<string>", line 3, column 3: - 'Beta version for mcMMO 1.4.0- ... ^ expected <block end>, but found Scalar in "<string>", line 6, column 99: ... ect to the new sytem if you don't upgrade from v2.0.x version, t ... ^
2013-03-05 02:50:55 [SEVERE] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) 2013-03-05 02:50:55 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) 2013-03-05 02:50:55 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105) 2013-03-05 02:50:55 [SEVERE] at org.shortrip.boozaa.plugins.boomcmmoreward.utils.Configuration.load(Configuration.java:50) 2013-03-05 02:50:55 [SEVERE] at org.shortrip.boozaa.plugins.boomcmmoreward.utils.CheckUpdate.checkForUpdates(CheckUpdate.java:59) 2013-03-05 02:50:55 [SEVERE] at org.shortrip.boozaa.plugins.boomcmmoreward.utils.CheckUpdate$1.run(CheckUpdate.java:41) 2013-03-05 02:50:55 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftTask.run(CraftTask.java:53) 2013-03-05 02:50:55 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) 2013-03-05 02:50:55 [SEVERE] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-05 02:50:55 [SEVERE] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-05 02:50:55 [SEVERE] at java.lang.Thread.run(Unknown Source) 2013-03-05 02:50:55 [SEVERE] Caused by: while parsing a block collection
@mrelfire
All right i understand so we can share ours here.
Give me some time and i put some of mine.
@boozaa
thanks, but it looks like a toolbox, I have created some few samples (based on yours), but I am stuck with no ideas (example every 10 making a reward but that's all), I am sure we can do more
merci, mais c'est comme une boite à outil géante, j'ai créé quelques exemples basés sur les tiens, mais je suis coincé à cours d'idées (par exemple tous les 10 faire une récompense, mais c'est vraiment tout), et je suis sur que je pourrais faire plus mais voila je n'ai pas beaucoup d'imagination...
@Faldonboy
v2.0.2b is waiting approval. It fixes the recent mcMMO SkillType refactoring.
For your error try to set metrics to false on your config.yml, thank you.
Can you update for the latest mcmmo builds please? Ever since installing the latest bukkitdev release nolagg has been reporting this error every 10 minutes(huge lag that disconnects everyone)
@firelook
There is a single example here.
If you want more complex examples i can make them, simply ask me if this one is not enough.
Y a une page d'exemple simple ici.
Si ca te suffit pas tu me demandes je te ferais des exemples plus complexes.
Have you got a kind of list of samples to share to give inspiration ? /* aurais tu une liste d'exemple de fichiers pour rechercher l'inspiration et de pouvoir les étudier */
@volderman
I knew .NET and i went on java to make some plugins
so you knew java and you just made plugins?????
@volderman
I don't learned to make plugins, i learned developement object oriented and not in java.
I used bukkit official tutorial about bukkit plugin creation.
boozaa i dont mean to pry but whered you learn to make plugins????
@Faldonboy
For structure is the same. Your SKILLS's folder contains every skills and each skill contains 'ONE' and 'EVERY' ?
Can you try most recent mcMMO dev build ?
@boozaa
mcMMO - 1.4.00-beta1-b1422
the folder structure is reversed from what you said (every comes before one) not sure if that makes a difference.
@Faldonboy
Please tell me your mcMMO version too.
Can you confirm me that your folder structure is good :
And for every skills: