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...
@iliektnt
Thank you for your feedback. Let me take a look at this and i'll be back to you.
I have 2 questions for you:
@boozaa
i tried doing it like that originally, but it still used %player% in the chat instead of the players name.
@iliektnt
Hello iliektnt,
can you use the message part on your rewards section like this:
Edit:
you don't have to reboot your server or reload the plugin after modifications on your reward's files. Please tell me if this works as it should, thank you.
Hi, amazing plugin, completely opened up my server to a new level, except i cant seem to get it to broadcast the players name in a message. how can i get it to put the persons name and broadcast it? im using something like this now
commands: - 'broadcast Congratulations to %player% for reaching rank 2!'
but in chat it shows up as %player% thanks in advance =D
@mrelfire
Hello,
there is a lot of debug messages to help you to see if something is wrong or to see if treatments of conditions are good. To disable this you can type on console 'boomcmmoreward debug' to toggle the debug mode or edit your config.yml to set 'debugmode' to 'false'.
I have in my log this: 08:32:49 [INFO] [BoomcMMoReward] - DEBUG - Queue head :org.shortrip.boozaa.plugi ns.boomcmmoreward.cReward@33faadae what does it mean please ?
@boozaa
oh ok just let me know :D
@MCBuncey
Hello and thank you for your enthousiasm :). I don't have a way to accept donation for the moment, perhaps some day, i really thank you for your message.
@Vincent1468
Hi, i see a problem with your 'Money' section it must be:
Refer to this page
Hello booza can i know where can i send you some donation as a token of gratitude from my server from what you did and your awesome plugin :D its been really a great used to my server since then and you have been really helpful.
I'm having some issues with this plugin, I have a message set and money, but the player isn't getting it! I want to to be at powerlevel 50 so I created a file called 50.yml in the folder /POWER/ONE/50.yml. In that file I have put this: http://pastebin.com/5DxDSW6b Do you know what I'm doing wrong?
@TfT_02
I obtain skillnames from this SkillType enum yes.
I intercept McMMOPlayerLevelUpEvent and call ExperienceAPI.getPowerLevel(Player player) and ExperienceAPI.getLevel(Player player, String skilltype).
That's all i use from mcMMO on a read only way so.
Example to set the player's POWER as a suffix with PermissionsEX:
This must be done on BoomcMMoReward/POWER/EVERY/1.yml
@Vincent1468
You're welcome
@boozaa
Thank you, I was using an older version of McMMO. And I don't have much experience with IRC's but thanks for telling me that I can just typ your name to alert you :)
@Vincent1468
Hello Vincent1468
this is an error about mcMMO package. To help you i need to know your BoomcMMoReward version and your mcMMO version because latest dev releases of mcMMO has big differences with stable release.
You must use v2.0.2b if you use very latest dev release of mcMMO that you can find here, v2.0.1b for older dev release...
When you come on irc please write my nickname and i can see you ... :)
This plugin looks really good but I'm getting this error: http://pastebin.com/EPRiA2ph What does it mean and what did I do wrong?
@artlune
If you use 1 reward file for each rank promotion i think you should already know if player join "Lvl.3" or "Lvl.2" etc based on the level when the promotion occured.
"...you would have to add support for each permissions plugin seperately...."
Exactly and this is why i think that the conditions part might be useful for you for example:
Reward Level 1
You verify if the player is not member of Lvl.1, Lvl.2 and Lvl.3 ... so your promote command might put the player on the next group ladder so you know this group's name.
Reward Level 2
You verify if the player is not member of Lvl.2 and Lvl.3 but a member of Lvl.1 ... so your promote command might put the player on the next group ladder so you know this group's name Lvl.2.
Reward Level 3
You verify if the player is not member of Lvl.1 and Lvl.3 but a member of Lvl.2 ... so your promote command might put the player on the next group ladder so you know this group's name Lvl.3.
So you control yourself the group part and can be sure that the message part will be launched if conditions are fullfill so you can use the group name directly.
It is a more flexible solution i think for all ways and one reason that the scenario way might be very useful...
@boozaa
Would this scenario be possible in a reward file?
1. Run permissions plugin command to promote or add a user to a group
2. BoomcMMoReward checks for user's group and sees that they are now in Group C
3. BoomcMMoReward displays Group C in place of %group% in the message sent to the player
If they are in multiple groups this could be an issue. Maybe it could read the command used, then check which group they were just added to. Here is an example:
1. /pex promote <player> Level
2. Check command and see they were promoted on "Level" rank-ladder
3. Check "Level" rank-ladder and see they are now in group "Lvl.3"
4. Display "Lvl.3" in place of %group% in the reward message
This would probably require a lot of work though since you would have to add support for each permissions plugin seperately. Hmmmmm
@artlune
I was thinking about that but i don't find a way to do this because of a lot of alternatives are on the road.
Depends of group manager sometimes there are a default group sometimes not, there aren't a group manager that provide this kind of thing: last group.
Even if i plan to provide a %group% when you use a 'group reward' how can i do if someone want to put player on a group AND remove him from another ?
If you find a way that i don't find, feel free to explain me.