PvpLevels
PvpLevels
requested by Matthiasvd2
This is a plugin to bring more intresting pvp'in in to Minecraft, by creating custom pvp levels
Features
- add custom levels to minecraft
- custom chat format changes
- incrasing needed kills for levels
- Reward players for pvp'ing
- Let players view their Kill death ratio
- MySQL support
- SQLite support
- Advanced api
Level system
max-level: 100 # Defines how much xtra kills you need for each level # In this example we take 4 as default kills and 1.0 as increment # lvl 1 = (4 * 1) + (1.0 * 0) = 4 kills. # lvl 10 = (4 * 10) + (1.0 * 10) = 50 kills. increment-value: 1.0 # Defines how much you allways need to level up (+ increment * lvl) default-kills: 4 # Defines how much a player can attack the same player as before. # Example: for value 3 --> after killing Notch 3 times it ignores killing notch kill-session: 3
Example chat setup
this is optional, if you dont do this it will auto grab in!
PvpLevels replaces a custom string in the chat format with the players lvl, this requires a chat plugin, a.k.a EssentialsChat.
if you dont have a chat plugin or you dont know how to set this up it will auto grab your chat and do this
example format:
format: '[&aLvl [LEVEL]&f] %prefix %player&f: %message'
will result in:
[Lvl 6] [Owner] lenis0012: hi.
You can also use [KDR] in your chat format.
Video
Todo
add auto grabber for chatadd /lvl add/set/remove <player> <amount>add permissionsadd TagAPI support.The new scoreboard API from BKCommonLib is much better :P
Commands
[optional] - <required>
- /kdr [player] - Show a player's Kill Death Ratio
- /level add/set/remove <amount> - Add/set/remove levels from a player.
Permissions
- pvp.kdr.self - View your own KDR
- pvp.kdr.orther - View orther player's KDR
- pvplevels.change - Change level from a player
Developpers
Download
v1.2.1 - Download (1.7.2-R0.2)
@lenis0012
Oh! The only issue I had was it needing ChatEX support, it doesn't work with it. Anyhow, everything else was beautiful! ^.^ Basically, with ChatEX, it doesn't show the " levels " whatsoever :/
@X_angelz_X
Whats wrong besides lag?
Btw, i will add yml backend support soon,
to prevent lag
Can I use it just for one world? When yes, please tell me how! And when not please add it!
Hope the author continues to develop this!
i have problem whit this plugins, checks some of essentials version, but the all have this same bug :
21:26:42 [SEVERE] Could not pass event AsyncPlayerChatEvent to EssentialsChat v2.12.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460) at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.java:902) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:843) at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49) at org.spigotmc.netty.NettyNetworkManager$2.run(NettyNetworkManager.java:130) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.util.UnknownFormatConversionException: Conversion = 'p' at org.bukkit.event.player.AsyncPlayerChatEvent.setFormat(AsyncPlayerChatEvent.java:82) at com.earth2me.essentials.chat.EssentialsChatPlayerListenerLowest.onPlayerChat(EssentialsChatPlayerListenerLowest.java:61) at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 13 more
Ok, i know what a problem. The problem is a essetials chat format : format: '[&aLvl [LEVEL]&f] %prefix %player&f: %message'
Fix problem change this to default settings and PVPlevels automaticly update chat for [LVL x] [group].....
And now i have another problem. PVPlevels generate lags. i have 1.6.4 in spigot.
ChatEx support and modify the minecraft xp bar to show your level
Can you add Chat Support for ChatEX ? Would be very helpful, thanks!
@chrisbruijnes
Its on jenkins.
But i still need to upload it to bukkit ;)
You said today? :P
Bug fix releasing today.
Does this support different worlds (Like on for PvP, and off for Peaceful)...also for the chat.
@Pixiyo
Yep it is, Use MySQL instead and it should be fixed.
Suggestion:
Add divisions(something similar to ELO system in League of Legends. :>
This plugin gives my server alot of lag. Timings: http://aikar.co/timings.php?url=6903153
And it's every day the same, this plugin gives lag. Don't recommend until it's fixed.
Suggestion:
Add a command:/lvl which will show you how many players you have to kill to level up and you current level. :)
Suggestion:
Add ability to see leaderboards for top levels.
Hi there, I have a question regarding your plugin. When mixed/used with SurvivalGames: http://dev.bukkit.org/bukkit-plugins/survival-games/ In an arena, whilst using your plugin, no-one is allowed to hit each other - in the console, there will be an error concerning PvpLevels. After disabling PvpLevels, SurvivalGames worked fine. Is there any way that I can make it so players can still earn points from Pvplevels in Survival Games, without actually affecting the gameplay? Thanks, Xyrophlex
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. [11:50:29 WARN]: at sun.reflect.GeneratedConstructorAccessor59.newInstance(Unknown Source) [11:50:29 WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [11:50:29 WARN]: at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [11:50:29 WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) [11:50:29 WARN]: at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116) [11:50:29 WARN]: at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343) [11:50:29 WARN]: at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2334) [11:50:29 WARN]: at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2186) [11:50:29 WARN]: ... 36 more [11:50:29 WARN]: Caused by: java.net.ConnectException: Connection timed out [11:50:29 WARN]: at java.net.PlainSocketImpl.socketConnect(Native Method) [11:50:29 WARN]: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) [11:50:29 WARN]: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) [11:50:29 WARN]: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) [11:50:29 WARN]: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) [11:50:29 WARN]: at java.net.Socket.connect(Socket.java:579) [11:50:29 WARN]: at java.net.Socket.connect(Socket.java:528) [11:50:29 WARN]: at java.net.Socket.<init>(Socket.java:425) [11:50:29 WARN]: at java.net.Socket.<init>(Socket.java:241) [11:50:29 WARN]: at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:254) [11:50:29 WARN]: at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292) [11:50:29 WARN]: ... 38 more [11:52:47 ERROR]: [PvpLevels] Failed to init MySQL connection:
Can you make it so only a world uses this?
Because it is weird seeing a level in the Nether/Etc..
when i reload my server, the data is reset, for exemple, i'm lvl 4, i reload and i dont have lvl, when i reconnect i'm 0 : WTF ?