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
No, there ist not even a SKILLS folder. However, there is a POWER folder. Hope you're able to fix this soon, as your plugin is the onlyone, that can do what I wish :) Really good thing by the way!
@Sadragos
Hi Sadragos,
can you check that you have your folders created :
plugins->BoomcMMoReward->SKILLS and inside one folder by competence ?
Edit: i check the latest dev build of mcMMO (#1520) and yes another changes occured so i will update to take this changes
I get the following Error, when starting Up the Server with newest mcMMO and you Version 1.1.6: http://pastebin.com/xB9uiJmR
@drhydralisk
Hi,
don't use the 1.1.5 or the 1.1.6-Temp if you don't use mcMMO 1.4.00+, you must stay on 1.1.0.
I am still having issues while running this and LogBlock enabled at the same time. This is the error I get http://pastebin.com/u8AXqHyZ
@Faldonboy
Ok, i was intrigated because the error show a Vault exception and it must use bPermissions if it found it. Give me some time and i'll see this more deeply if you can wait with groups conditions.
Thank you
@boozaa
I was using their latest release, I downgraded it again temporarily though to avoid that error being spammed.
It is for newest bPermissions release. Let me prepare some tests server to check all of that.
@boozaa
The beta version was working fine for about 20 minutes then this error randomly showed up again and froze the server for 9 minutes. Also, I still can't get the perms condition to work, all of the other conditions work fine except that one, sadly its the one I need.
Beta release is sent, waiting approval.
@boozaa
I would love to try it out, I always try and help if I can.
Also, adding the world name so its like this doesn't help, the example below it that also has the group condition ONLY works for the group condition, it still isn't reading the perm condition at all.
@Faldonboy
if you want to try latest bPermissions i made a special version of BoomcMMoReward which try to use native functions of PermissionsEx and bPermissions if present before using Vault.
Tell me if you are interested to try it.
@Faldonboy
In your example you give 2 perms to the player who already have the perm otherdrops.custom.tamer. If it is the case it isn't normal yes and can you try adding a world defined permission condition to test like :
And testing with group condition too please.
Thank you,
@boozaa
That makes a lot more sense now, haha. I've gotten the group condition to work now but using the same structure I still can't get the perms condition to work, It still gives the reward even if I don't have the permission. Looking in console the debug says that it checked the conditions though.
@Faldonboy
The problem is your yaml structure. You must set 'conditions' part like 'rewards' part like this:
Understand that 'rewards' and 'conditions' must be on the same root yaml level, perhaps the examples page would help you.
You must see those two parts as standalone :
@boozaa
Thanks for the fast response, I've temporarily downgraded bPermissions even farther and it fixed it. I'm having another problem though, I can't get conditions to work.
The reward still happens even if they don't have the scout rank, or in the example below that if they don't have the permission listed they still get the reward. Note: these are two separate attempts at getting conditions to work, they weren't both in at the same time.
@Faldonboy
Hi Faldonboy,
i suppose that the add permission on bPermissions has changed and Vault can't deal with that.
bPermissions change his api (see changelog) so i suggest you to wait until stable Vault release or try a Vault dev release.
Just updated to 1.4.7 the other day and 1.1.5 for this plugin and This Error started showing up whenever someone reaches a level that is supposed to give them a new permission. I really need this working again, any ideas?
Edit: I thought maybe it was the updated version of bPermissions I was using but I downgraded back to our 1.4.6 version and its still throwing the error, all other reward functions work fine, including adding and removing permission groups.
Edit 2: Money rewards aren't working either, Economy is Essentials Eco/BOSEconomy if that helps at all
@MCBuncey
Hi Vanmc
this version is for beta dev build of mcMMO. You don't have to update if you don't use current mcMMO's dev builds. :)
After updating to 1.1.5 i got this error
04.02 03:30:42 [Server] INFO ... 14 more 04.02 03:30:42 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 04.02 03:30:42 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) 04.02 03:30:42 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) 04.02 03:30:42 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) 04.02 03:30:42 [Server] INFO at java.net.URLClassLoader.findClass(Unknown Source) 04.02 03:30:42 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) 04.02 03:30:42 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) 04.02 03:30:42 [Server] INFO at java.net.URLClassLoader$1.run(Unknown Source) 04.02 03:30:42 [Server] INFO Caused by: java.lang.ClassNotFoundException: com.gmail.nossr50.skills.utilities.SkillType 04.02 03:30:42 [Server] INFO at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) 04.02 03:30:42 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) 04.02 03:30:42 [Server] INFO at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149) 04.02 03:30:42 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:259) 04.02 03:30:42 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:300) 04.02 03:30:42 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:321) 04.02 03:30:42 [Server] INFO at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:264) 04.02 03:30:42 [Server] INFO at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:282) 04.02 03:30:42 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 04.02 03:30:42 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) 04.02 03:30:42 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 04.02 03:30:42 [Server] INFO at org.shortrip.boozaa.plugins.boomcmmoreward.BoomcMMoReward.onEnable(BoomcMMoReward.java:104) 04.02 03:30:42 [Server] INFO at org.shortrip.boozaa.plugins.boomcmmoreward.BoomcMMoReward.loadMainConfig(BoomcMMoReward.java:202) 04.02 03:30:42 [Server] INFO at org.shortrip.boozaa.plugins.boomcmmoreward.BoomcMMoReward.makeFolders(BoomcMMoReward.java:341) 04.02 03:30:42 [Server] INFO java.lang.NoClassDefFoundError: com/gmail/nossr50/skills/utilities/SkillType 04.02 03:30:42 [Server] SEVERE Error occurred while enabling BoomcMMoReward v1.1.5 (Is it up to date?)