KitPVP
KITPVP!
WARNING:
YOU NEED VAULT AND AN ECONOMY PLUGIN OR THIS PLUGIN WILL NOT BE ENABLED ON SERVER STARTUP.
Vault and economy are vital dependencies.
Download | Source Code
I originally made this plugin as a custom plugin for a kit pvp server. I later decided to upload it to Bukkit dev for other people.
So here is a list of what it does:
- If you type /kit, it opens a customizable menu of all the kits and the kits prices with the server name in bold at the top.
- Disables hunger lose.
- A /soup command to refill inventory with soup
- A /kit <kit> command to get what kit you want.
- When you type /soup or /kit <kit> it gives you invulnerablity for 10 seconds similar to what happens on the kitpvp.us server when you type /soup.
- Disables the ability to drop items that aren't soup or bowls and disables the ability to pickup items that aren't soup by default (Changable in config)
- Create custom kits.
- Have unlimited kits.
- Economy (Needs vault) - If a player kills someone you get $1 which you can spend on kits - each kit's price customizable in config.
- If a player kills someone, they get strength and regen bonus for 20 seconds.
- Adds a config file to add/remove/change different kits and enable/disable item pickup and drop of items other than soup:
Name of your server displayed when players type /kit: Server Name - set this in config. Enable drop/pick of other items (not just soup): false Kits: Warrior: Items: 276-1,306-1,307-1,308-1,309-1 Price: 2 ExampleKit1: Items: 2-64,1-1,5-4 Price: 4 ExampleKit2: Items: 4-64,1-1,5-4 Price: 1 ExampleKit3: Items: 4-64,4-1,4-4 Price: 0 Names: Warrior,ExampleKit1,ExampleKit2,ExampleKit3
This plugin is recommended: http://dev.bukkit.org/bukkit-plugins/scoreboardstats/ with these as variables: %kills% %deaths% %kdr% %killstreak% %current_streak%
Can you add the arena's setup, change the kit cmd to /kitpvp kit (name) and to add kit creation in-game?plz
@GoldenEagle5
Emailed. Sorry for the late reply
Hi, I really like this plugin idea and it's the closest to the plugin I'm looking for and I'm wondering if you could make me a similar one. Email me at [email protected] What I need is this: I need a kill counter and at certain milestones they receive a pex permission to an essentials kit and a "rankup" by means of a changed prefix (I want their prefix to be like [killrank] [rank] username where killrank is a rank name based on kills and rank is like member/mod/admin etc.) I need this ranking system because I can't use a kill rankup system that gives them a pex group because I want my staff to be able to play also and when they rankup it changes their pex group and they lose all their mod/admin permissions and prefix.
@MCKarlo01
Yes.
@Fillpant
lol this is like one of the first plugins I've made. :P However I've stopped uploading to bukkit dev since I only make custom plugins now. I know that now hahaha. When I made this I was only just starting to learn bukkit api and I had previous experience in java before. Check this out: http://www.spigotmc.org/threads/i-code-quick-on-time-reliable-and-easy-to-maintain-plugins.64031/#post-704762 The fact that your plugin took more lines of code either means that it's bigger or that you don't know how to optimize your code ;) Either way, I look back at this code and cringe.
when player gets killed by another player,does he lose his kit and must buy it again '?
A few notices on your code, firstly, Just 2 classes? My personal kitpvp took 80 classes and ~10k lines but that's not the point :- ) I'd. Suggest u use getServer()#getLogger() and not stealing bukkit a logger by getLogger(string Param); Please fix that^ and your plugin will be really a good one :)