McMmo Auto-Promote
McMmo Auto-Promote 
About
This plugin allows for users to get promoted by getting mcMMO levels.
Once a certain skill level has been reached the plugin will automatically promote the user according to the permissions.
Uses vault for permissions. Vault

Features
- Auto-promotes when a skill level has been reached in mcMMO.
- Custom promotion message.
- Public or user-only promotion message.
- Debug tools for advanced servers admins.
- Multiple ladders.
- Auto-promotion depending on specific skills.
- Auto-promotion based on Vault permissions.
- Multiple skill requirements must be met before auto-promote.
- Requiring and rejecting groups a player has can prevent a player from auto-promoting.
Future Features
- Command to show statistics and next promotion requirements.
- Player name prefix for non-permission servers.
- Nested conditions. ( 'and' inside another 'and' )
- Commands to add, remove, modify promotion settings in-game or through console.
- If you have more ideas please post them below.
FAQ
- What is a ladder?
A ladder is similar to a leader-board for players, except a ladder tells the plugin what groups a player can be promoted to and in what order. Having multiple ladders means a player can be promoted in multiple groups at once.
- What is the group rank for?
The rank tells the plugin which group should be promoted to next. If a group has the highest rank then the plugin will try to promote to that group before any of the others.
- How do I stop staff from promoting?
A) Reject the group in the first group of the ladder.
B) Add the 'mcmmoap.disallow' permission to the staff group.
- How can I support this plugin?
Please visit this button below. I invest quite a bit of time on the plugins I make so any amount of donation helps a lot.
Config Glossary
- rank - Tells the plugin which group should be promoted to next.
- reject - Will prevent a player from being promoted to the next group if they have a rejected group.
- require - Will prevent a player from being promoted to the next group if they dont have the required group.
- Skills - power, acrobatics, archery, axes, excavation, fishing, herbalism, mining, repair, smelting, swords, taming, unarmed, woodcutting
- and { } - Only allows promotion if the player has every skill in the 'and' list.
- message - The allows a custom message for each group. It is displayed when the player is promoted to the group.
- Or { } - There is no 'or' list. If you want the player to only have to get 1 of the skills in the group to be promoted to the group then put the skills outside of any 'and' list. Like in the Basic Example below.
Config Examples
- Basic Example
ladders { default { # This is the default ladder. Normal { rank = '100' # Must be unique to the ladder. reject = 'Admin' .# If the player gets either of these skills, they will promote. power = '5' mining = '1' woodcutting = '1' excavation = '1' } Awesome { rank = '90' # Must be unique to the ladder. message = '&GREENYou are awesome.' .# Player will only promote if they have all these skills. and { power = '5' mining = '1' excavation = '1' woodcutting = '1' } } Epic { rank = '80' # Must be unique to the ladder. .# Will promote if the player has 20 power level. power = '20' .# Or if they have all of these skills. and { mining = '5' woodcutting = '5' excavation = '5' } } } }
Please report any errors you find!
Enjoy.
Need lots of groups? Try my javascript config generator.
http://www.mediafire.com/?t9cul3vvbynwamt
Current Bugs
- None yet. Report them! (Include Bukkit, mcMMO and McMmoAp versions)
-
View User Profile
-
Send Message
Posted Apr 29, 2012@Atteluxy
http://dev.bukkit.org/server-mods/mcmmo-auto-promote/pages/example-with-a-ladder/
-
View User Profile
-
Send Message
Posted Apr 29, 2012@kyllingman2 This looks like your mcMMO is not the right version.
@DeusAmplus And this looks like PermissionEx is missing.
Can you guys please tell me what versions of mcMMO and my plugin you are using?
-
View User Profile
-
Send Message
Posted Apr 29, 2012When I level up the console shows this:
2012-04-29 20:31:31 [SEVERE] Could not pass event McMMOPlayerLevelUpEvent to McMmoAp
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at com.gmail.nossr50.skills.Skills.XpCheckSkill(Skills.java:203)
at com.gmail.nossr50.skills.Mining.miningXP(Mining.java:149)
at com.gmail.nossr50.skills.Mining.miningBlockCheck(Mining.java:163)
at com.gmail.nossr50.listeners.mcBlockListener.onBlockBreak(mcBlockListener.java:168)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.ItemInWorldManager.breakBlock(ItemInWorldManager.java:220)
at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:175)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:540)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:129)
at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at me.tagette.mcmmoap.APPowerLevel.getNextRankGroup(APPowerLevel.java:106)
at me.tagette.mcmmoap.APPowerLevel.tryPromote(APPowerLevel.java:62)
at me.tagette.mcmmoap.APLevelListener.McMMOPlayerLevelUpEvent(APLevelListener.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 24 more
The plugins I use:
Achievement
AuthMe
BOSEconomy
CommandsEx
iChat
InfoGuide
KitPlugin
McMMO
McMMO AP (of course :P)
PermissionsEx
SpoutPlugin
Vault
I use the latest mcMMOAP and the latest craftbukkit.
I use a mac (dunno if that matters)
-
View User Profile
-
Send Message
Posted Apr 27, 2012Ehhmmm, I've done what I could and can't come up to a solution of this, would be nice with some help!
-
View User Profile
-
Send Message
Posted Apr 27, 2012Awesome!
-
View User Profile
-
Send Message
Posted Apr 27, 2012Is there a way to promote someone in the same latter he is? I have multiple ladders How does the config look like?
-
View User Profile
-
Send Message
Posted Apr 26, 2012@Tagette
Found it's link to orebfuscator (last version solve this prob)
-
View User Profile
-
Send Message
Posted Apr 26, 2012@nicquehen
It doesn't look like my plugin caused that error.
-
View User Profile
-
Send Message
Posted Apr 26, 2012@Sk8Sanctified
What do you mean GM support? This plugin promotes any groups. Even GM groups
-
View User Profile
-
Send Message
Posted Apr 26, 2012Any chance this will have GM support in the near future?
-
View User Profile
-
Send Message
Posted Apr 25, 2012@Tagette
bPermissions shouldn't have this problem as you can just do /promote <user> <track>
-
View User Profile
-
Send Message
Posted Apr 25, 2012I found some error like :
2012-04-25 15:08:51 [SEVERE] java.lang.NullPointerException 2012-04-25 15:08:51 [SEVERE] at com.gmail.nossr50.Metrics.postPlugin(Metrics.java:272) 2012-04-25 15:08:51 [SEVERE] at com.gmail.nossr50.Metrics.access$100(Metrics.java:27) 2012-04-25 15:08:51 [SEVERE] at com.gmail.nossr50.Metrics$1.run(Metrics.java:163) 2012-04-25 15:08:51 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 2012-04-25 15:08:51 [SEVERE] at java.lang.Thread.run(Thread.java:679) 2012-04-25 15:08:51 [SEVERE] java.lang.NullPointerException 2012-04-25 15:08:51 [SEVERE] at net.milkbowl.vault.Metrics.postPlugin(Metrics.java:335) 2012-04-25 15:08:51 [SEVERE] at net.milkbowl.vault.Metrics.access$100(Metrics.java:62) 2012-04-25 15:08:51 [SEVERE] at net.milkbowl.vault.Metrics$4.run(Metrics.java:245) 2012-04-25 15:08:51 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34) 2012-04-25 15:08:51 [SEVERE] at java.lang.Thread.run(Thread.java:679) 2012-04-25 15:08:51 [SEVERE] [Metrics] null 2012-04-25 15:08:52 [INFO] [Metrics] {0}
Do you think it can be link to this plugin??
-
View User Profile
-
Send Message
Posted Apr 25, 2012@Tagette
Great ! :)
I remanage my permission and it's ok it work ! :D
Thx for your help
-
View User Profile
-
Send Message
Posted Apr 24, 2012Ok so an issue some people were having with lag was actually how they set up their permissions. If you have multiple groups and each one inherits from the one above. This will cause lag because PEX has to search "many" times through the entire list to find the next group to promote to.
So for now please avoid inheriting each group from the group above it.
Correct Example:
-
View User Profile
-
Send Message
Posted Apr 24, 2012@Atteluxy
It has already been updated for the latest mcmmo version as of 1.0.2.
-
View User Profile
-
Send Message
Posted Apr 23, 2012Thank you for the fast answer :D When are you going to update it for the newest Mcmmo Version?
-
View User Profile
-
Send Message
Posted Apr 23, 2012Perhaps add support for some 'and' statements, if you will.
"if mining is 20 or above, excavation is 50 or above and woodcutting is 10 or above, rank this player up."
This could already be possible with your ladder system, but it's really late at night right now and I can't think properly :)
-
View User Profile
-
Send Message
Posted Apr 22, 2012@Tagette
The latest
v1.3.05-b624
-
View User Profile
-
Send Message
Posted Apr 22, 2012@nicquehen What version of mcMMO are you using?
@Atteluxy Try using McMmoAp 1.0.3
@watdidyusaey No, but I do believe there is already a plugin that does that.
-
View User Profile
-
Send Message
Posted Apr 22, 2012Can you do this with default minecraft xp?