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 don't think the max levels work
Is API broken?
[syntax=java]
Player player = e.getPlayer();
PvpPlayer pp = new PvpPlayer(player); // Error
int lvl = player.getLevel();
[/syntax]
Just wondering when this plugin will be updated? Just need an update to fix the levelling not saving for players.
help! why my kills not saving? I killed 10 players no killstreak showing and level still 0. I checked the save file from mysql but kills didn't change still 0 why?
how do you add kdr in chat? can you please tell me where and how?
dude... why the hell you didn't put world options in it!.
Lenis, it's me from MonCraft SecretFormula1 <333
Hey lenis. Please, I need help. Everytime I reload/restart my server, the levels reset. The console has no errors, please add me on skype if you can help, or response here. (skype xExecutorx24)
Example: (Lvl5) after reload/restart of the server: (Lvl0). Please help.
UUID would be great.
Can you please add UUID support
If you have errors with this , then You can use http://dev.bukkit.org/bukkit-plugins/pvpleveling/ plugin instead of this.
pls update <3
[21:39:03] [Server thread/INFO]: Set score of pkt for player Syberia to 880[m [21:39:03] [Server thread/INFO]: [0;30;1m> [0;33;22mGracz [0;31;1mSyberia [0;33;22mwylogowal sie podczas walki![m [21:39:04] [Server thread/INFO]: [-] [Owner] Syberia opuscil gre! [21:39:04] [Server thread/INFO]: [PvpLevels] [0;31;1mInternal error![m [21:39:04] [Server thread/INFO]: [PvpLevels] If this bug has not been reported please open a ticket at BukkitDev[m [21:39:04] [Server thread/INFO]: [PvpLevels] Include the following into your bug report:[m [21:39:04] [Server thread/INFO]: [PvpLevels] ====== [0;32;1mSTACK TRACE[0;37;22m ======[m [21:39:04] [Server thread/INFO]: [PvpLevels] java.lang.NullPointerException[m [21:39:04] [Server thread/INFO]: [PvpLevels] at com.lenis0012.bukkit.pvp.PvpPlayer.reward(PvpPlayer.java:104)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at com.lenis0012.bukkit.pvp.listeners.EntityListener.onEntityDeath(EntityListener.java:92)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at java.lang.reflect.Method.invoke(Unknown Source)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:292)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:36)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:380)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.EntityPlayer.die(EntityPlayer.java:369)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.EntityLiving.damageEntity(EntityLiving.java:736)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.EntityHuman.damageEntity(EntityHuman.java:758)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.EntityPlayer.damageEntity(EntityPlayer.java:448)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.craftbukkit.v1_7_R4.entity.CraftLivingEntity.damage(CraftLivingEntity.java:203)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.craftbukkit.v1_7_R4.entity.CraftLivingEntity.damage(CraftLivingEntity.java:188)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.bukkitutil.HealthUtils.damage(HealthUtils.java:149)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.effects.EffKill.execute(EffKill.java:74)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.lang.Effect.run(Effect.java:50)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:63)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:91)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:149)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:109)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:36)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.PlayerList.disconnect(PlayerList.java:307)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:706)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:130)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558)[m [21:39:04] [Server thread/INFO]: [PvpLevels] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469)[m [21:39:04] [Server thread/INFO]: [PvpLevels] ====== [0;32;1mDUMP[0;37;22m ======[m [21:39:04] [Server thread/INFO]: [PvpLevels] plugin name: PvpLevels[m [21:39:04] [Server thread/INFO]: [PvpLevels] plugin version: 1.2.1[m [21:39:04] [Server thread/INFO]: [PvpLevels] bukkit version: 1.7.10-R0.1-SNAPSHOT[m [21:39:04] [Server thread/INFO]: [PvpLevels] description: null[m [21:39:04] [Server thread/INFO]: [PvpLevels] ====== [0;32;1mElement #1[0;37;22m ======[m [21:39:04] [Server thread/INFO]: [PvpLevels] class: com.lenis0012.bukkit.pvp.PvpPlayer[m [21:39:04] [Server thread/INFO]: [PvpLevels] at line: 104[m [21:39:04] [Server thread/INFO]: [PvpLevels] method: reward[m [21:39:04] [Server thread/INFO]: [PvpLevels] ====== [0;32;1mElement #2[0;37;22m ======[m [21:39:04] [Server thread/INFO]: [PvpLevels] class: com.lenis0012.bukkit.pvp.listeners.EntityListener[m [21:39:04] [Server thread/INFO]: [PvpLevels] at line: 92[m [21:39:04] [Server thread/INFO]: [PvpLevels] method: onEntityDeath[m [21:39:32] [Server thread/WARN]: mad_cal1993 moved wrongly! [21:39:34] [Server thread/WARN]: mad_cal1993 moved wrongly!
The "advanced API" is bad... We can only get score of a online player
Esse plugin detonou meu servidor! Odiei! Não recomendo!!!!!!!
Dev Builds are down....
@kahlilnc
Plugin itself not working for me
The chat doesnt work for me :( Using a premium plugin for chat formatting on spigot known as deluxechat ;(
D: it doesn't save the lvl's after restart not even in mySQL database.
Please update ;[