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)
I was wondering if it's possible to turn off prefix in some worlds, or disable it completely in one world? If not, can you add world support, it will help a lot, thanks.
Using Mysql for some reason data is not saving.
Upon restart all players lost levels and Kdr.
Nothing on start up hinted any issues. MySQL use is true.
Kinda confused lol :S
small bug, when you use /kdr set name 10 it resets the players kdr to 0, and it doesnt seem to matter what the level value is set to, its always set to 0.however a workaround that i have found is to do that and set someone to 0, then do /kdr add name # to set their desired kdr level.
why does it reset every time i restart the server?
It's not syncing players levels across separate servers even though the mySQL databases are set up properly
It doesn't show any errors, but the command option in rewards.yml file doesn't work. I followed the example and set commands to: true but it still doesn't work.. is there another variable instead of {User}?
Hello,
This plugin does not record levels of players after the server is restarted. For example, I reached level 5, but after restarting the server I have only 0 level. Please write me what I could do wrong or if some plugin conflicts with the plugin pvplevels.
P.S sorry for my english
21.07 14:51:02 [Server] INFO ... 13 more 21.07 14:51:02 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at com.lenis0012.bukkit.pvp.listeners.PlayerListener.onPlayerChat(PlayerListener.java:29) [?:?] 21.07 14:51:02 [Server] INFO Caused by: java.lang.NullPointerException 21.07 14:51:02 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_55] 21.07 14:51:02 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat$1.run(PacketPlayInChat.java:59) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:862) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.chat(PlayerConnection.java:922) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:294) [spigot.jar:git-Spigot-1477] 21.07 14:51:02 [Server] INFO org.bukkit.event.EventException 21.07 14:51:02 [Server] ERROR Could not pass event AsyncPlayerChatEvent to PvpLevels v1.2.1
There is a bug about factions and i need help what can i do
Here:
Here(Config) ClickMeh
Are you willing to add a feature that we can CHANGE messages, I coded it myself.. You should add it, check it here: http://pastebin.com/yhDXkdPn
@thomas900000
Feature was removed.
@thomas900000
Chnage the chat format of your chat plugin :3
lenis0012
Is It Possible To Display The Prefix In Chat As A Suffix?
@lenis0012
How Do You Get It To Display The Level Under Players NamePlate
@DaDukePlus
In your config's MySQL section:
Where it says " username: '9829' "
Put:" user: '9829' "
Heres my config: http://pastebin.com/RWwKAcWr
Heres my log error: [09:15:39] [Server thread/INFO]: [PvpLevels] Enabling PvpLevels v1.2.2 [09:15:42] [Server thread/WARN]: java.sql.SQLException: Access denied for user 'null'@'198.52.226.234' (using password: YES) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) [09:15:42] [Server thread/WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [09:15:42] [Server thread/WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [09:15:42] [Server thread/WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [09:15:42] [Server thread/WARN]: at java.lang.reflect.Constructor.newInstance(Unknown Source) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.Util.handleNewInstance(Util.java:407) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378) [09:15:42] [Server thread/WARN]: at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305) [09:15:42] [Server thread/WARN]: at java.sql.DriverManager.getConnection(Unknown Source) [09:15:42] [Server thread/WARN]: at java.sql.DriverManager.getConnection(Unknown Source) [09:15:42] [Server thread/WARN]: at com.lenis0012.database.Database.connect(Database.java:241) [09:15:42] [Server thread/WARN]: at com.lenis0012.bukkit.pvp.PvpLevels.onEnable(PvpLevels.java:95) [09:15:42] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [09:15:42] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [09:15:42] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [09:15:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugin(CraftServer.java:462) [09:15:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_7_R2.CraftServer.enablePlugins(CraftServer.java:380) [09:15:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.n(MinecraftServer.java:353) [09:15:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.g(MinecraftServer.java:328) [09:15:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.a(MinecraftServer.java:284) [09:15:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:186) [09:15:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:442) [09:15:42] [Server thread/WARN]: at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [09:15:42] [Server thread/ERROR]: Error occurred while enabling PvpLevels v1.2.2 (Is it up to date?) java.lang.NullPointerException at com.lenis0012.database.Database.registerTable(Database.java:41) [?:?] at com.lenis0012.bukkit.pvp.PvpLevels.onEnable(PvpLevels.java:96) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [spigot1387.jar:git-Spigot-1387] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [spigot1387.jar:git-Spigot-1387] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot1387.jar:git-Spigot-1387] at org.bukkit.craftbukkit.v1_7_R2.CraftServer.loadPlugin(CraftServer.java:462) [spigot1387.jar:git-Spigot-1387] at org.bukkit.craftbukkit.v1_7_R2.CraftServer.enablePlugins(CraftServer.java:380) [spigot1387.jar:git-Spigot-1387] at net.minecraft.server.v1_7_R2.MinecraftServer.n(MinecraftServer.java:353) [spigot1387.jar:git-Spigot-1387] at net.minecraft.server.v1_7_R2.MinecraftServer.g(MinecraftServer.java:328) [spigot1387.jar:git-Spigot-1387] at net.minecraft.server.v1_7_R2.MinecraftServer.a(MinecraftServer.java:284) [spigot1387.jar:git-Spigot-1387] at net.minecraft.server.v1_7_R2.DedicatedServer.init(DedicatedServer.java:186) [spigot1387.jar:git-Spigot-1387] at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java:442) [spigot1387.jar:git-Spigot-1387] at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:618) [spigot1387.jar:git-Spigot-1387]
@DaDukePlus
Any errors in log?
And please send your config.yml through pastebin
Everything works fine loads up really fast. The only thing is that mysql doesnt work.
@chrisbruijnes
Yes.
But i would like people to test it first.
Do you post it here on bukkit when you are sure it is a stable version?
UUID Update is here!
Need testers, get latest version from jenkins.
Config will be reset, so please re-configure your settings.
Post your log after converting to UUID.
I want to see how fast it is in bigger servers