Duel Arena
Duel Arena
Duel Arena allows players to challenge each other to 1v1 fights based on the popular mini-game from Runescape. GUI interface, PvP rule settings and stakes.
Features
- No Commands - Commands are completely optional as users right click players in a certain region to challenge other players
- GUI interface - users setup the game rules in a GUI interface and then stake items in an interface without commands
- The ability to bet any item in minecraft or with in-game cash
- Disallow a wide variety of items, potions, food, and more as part of each battle
- Set up an unlimited number of arenas for players to fight in
- Anti-scamming features during stake/rules screens via countdown screen
- Supports protecting items/players who disconnect or when a server reboots expected or unexpected.
Setup
- Drop the Jar file in plugin directory and ensure you also have Vault, WorldEdit and WorldGuard installed
- Create a region and then type /duel region [name] to set the lobby region
- Type /duel lobbyspawn to create the lobby spawn
- Create each individual arena, this can be surrounded with glass or some other blocks so players cannot escape. You can also make a giant arena with all the smaller arenas inside this arena. Players can only attack their targets during a duel.
- For each arena type /duel create and you will get an arenaID. To set the two spawnpoints type /duel [arenaID] pos1 and /duel [arenaID] pos2 for both player spawns.
Instructions for Playing
- Players can challenge others do a duel by typing /duel [other player] and the other player will get a request. They type the same command to accept the duel. If a lobby and region is setup, players can simply right click each other to accept a duel request.
- Rules - The first screen: rules are restrictions for the fight, these include disallowing: Helm, Chest, Legs, Boots, Ranged weapons, Melee Weapons, Potions, Food, God Apples, and 2X health for longer fight. After the users agree then can lock in and it will take them to the next screen.
- Stakes - users can stake cash or items here by using the icons provided can place bets or place items in the top left corner. Player can bet up to 11 items. Once they agree they can lock-in and the fight will start in a few seconds.
- Fight - players will be teleported to an available open spot (arena) and will fight to the death according to the rules.
- Winner - whoever kills the other player will receive all the items bet and the cash as the reward for killing the other player.
- As a note items will not drop on death, however any food eaten or armor damaged will remain damaged.
Player Commands
- /duel - help for player or admin
- /duel [playername] - sends a request to that player to duel
- /duel forfeit - Resign from current duel
Admin Commands
- /duel region [name] - sets the worldguard region name for the lobby
- /duel lobbyspawn - sets the lobby spawn
- /duel create - creates a new arena and gives you the ID#
- /duel [arenaID] pos1 - sets the 1st spawn in the arena
- /duel [arenaID] pos2 - sets the 2nd spawn in the arena
- /duel delete [id] - removes the arena based on the ID
- /duel list - shows how many arenas are added
- /duel reload - reloads the config
Permissions
- duelarena.player - required for players to duel others either by command or right click in lobby
- duelarena.admin - Required to setup arena and use admin commands
Suggestions
Post suggestions in the comments below and I will do what I can to implement them into the plugin.
To Do
- Enable/Disable Armor/Weapon damage during battle (add to config)
- Enable/Disable Consumable loss during battle (add to config)
- Enable/Disable Remove Potion effects before fight (will disable double health rule as well)
Updates
3/7/14 - Plugin has been approved by Bukkit - please report any bugs in the comments and upload server logs to pastebin.
Donate
If you feel this plugin has benefited your server - Donate to help me out :)
-
View User Profile
-
Send Message
Posted Dec 7, 2015Does this plugin still work?
-
View User Profile
-
Send Message
Posted Jul 4, 2014hey dude i love the plugin but there a few bugs in it that i have found. 1. The games some times end after 1 hit in the game. 2. the /duel lobbyspawn command doesn't work correctly. 3. you can sometime take out the items from the gui interface. 4. Doesnt change the players gamemode to surviual when teleported
Also a few suggestions would be to add configurable options such as how long the timer counts down before duels. Also would it be possible to have it so rather than needing to type /duel {name} to accept the duel could it be made so you can do /duel accept or /duel decline as it makes it alot more user friendly and easy to understand for younger players. Further more, it would be good if you could choose what map you wanted to fight on out of the configured arenas and have spectator teleports so other players can watch the fights if its between 2 big players or a accused hacker. Finally would it be possible to add factions support so people in the same faction are able to fight each other?
Thanks for the plugin that has been made so far and if the above changes and fixes can be implemented then this will be a much loved and used plugin on my server and i would love to talk to you about the possibility of some custom plugins.
Sharonwhitelock
Goldcraft Owner - mc.goldcraftmc.org
-
View User Profile
-
Send Message
Posted Jun 26, 2014/duel lobbyspawn gives me an error message of "Player not found!" when it says in your list of commands that it will set the lobby spawn. Is there something I am doing wrong?
-
View User Profile
-
Send Message
Posted Jun 9, 2014How do the players chose in which arena they want to fight
-
View User Profile
-
Send Message
Posted May 13, 2014Hi,
Are you planning on fixing the one hit win bug? Just wondering.
-
View User Profile
-
Send Message
Posted Apr 30, 2014Hey,
If this plugin is getting more updates I'm willing to donate!
-
View User Profile
-
Send Message
Posted Apr 29, 2014begins not when teleporting to Arena
-
View User Profile
-
Send Message
Posted Apr 24, 2014Found one of the causes of the bug where players don't get teleported out of the arena. I put some beacons with regeneration and resistance around to prolong battles (Hp more then 20 would be great!).
When one of the players won the game, they didn't get teleported out and the console gave an error message about the player health being greater than 0, didn't get a copy sorry. The same thing happened with just regeneration or just resistance. When the effects are removed (beacons removed), the plugin works as usual. Not sure if this applies to potion regeneration as well.
Also using some other plugins that grant players additional health that also produce the same bug.
Hope this helps. :)
-
View User Profile
-
Send Message
Posted Apr 16, 2014Alot of Bugs Sometimes when i hit somebody (once) the game ends. No teleport after game end.
-
View User Profile
-
Send Message
Posted Mar 27, 2014Bug: After killing a player the player who has died doesn't return back into the duel arena lobby instead he/she stays inside the duel arena and can be killed by others who enter the arena after.
Can this be fixed asap please?
Great plugin in general! Everyone enjoys it just apart from loosing their stuff after :(
EDIT: Also /duel lobbyspawn doesn't exist as a command? Not sure if this is a bug too.
-
View User Profile
-
Send Message
Posted Mar 20, 2014@TheD4n
Well, thank you for the fast reply! Anyway, what I mean by the 1st bug is that when in a no armour and unarmed fight it automatically removes your armour for the fight, and then once it finishes it replaces the armour if I am not mistaken. The problem is that when it replaces the armour it doesn't include the (fore example) "+20 Health" boost that it had when I (or any other player in this situation) entered the fight. If you need an example of what I mean feel free to PM me and maybe we can organize a time where I can meet you on my server and show you the problems! Also, I just tried recreating the bug and on the second try of recreating it (after successfully recreating it the first time) I found a new bug. Pretty much when you kill your opponent at (pretty much) the exact same moment he/she kills you, it makes us properly die. By which I mean we drop our items, which obviously isn't meant to happen in Duel Arena. Anyway, neither of these bugs showed any errors in the console sadly... I hope you can find a solution soon!
Also I was wondering if you could possibly give an ETA of the next update if possible! I really want to properly incorporate this plugin into my server!
-
View User Profile
-
Send Message
Posted Mar 20, 2014@NuclearNarwhal
Thanks for the feedback and bug reports if possible can you send me any errors you got related to the plugin from your server logs so I have that to review any problems.
As for the 1st problem I do some modifications on double health for it to work properly and I also remove any potion boosts ahead of time to make the battle even otherwise someone could simply potion boost before going in, then again you may want to allow that so I think I will add something to the config for that but as a result it would disable the double health option.
I do not have much time to update this plugin right now but I will in the near future.
-
View User Profile
-
Send Message
Posted Mar 19, 2014I would just like to say that I love this plugin! The smooth set up and the amazing rules/stakes GUI all contribute well to this plugin! Sadly though I don't come simply bearing praise for your work, as I have also found some pretty bad bugs. The first and less serious (yet still annoying) bug is that my server uses custom items that provide extra health, speed, and melee damage when worn, when a player enters a no armour and unarmed battle it removes these extra boosts when the battle has finished and you exit. Assuming the plugin uses a simple replacement method of re-equiping the armour, I feel that it must not support these additions. The more serious bug is that occasionally when I finish a battle with another player, it leaves one (or both) of us still in the arena even after it has declared a winner. It then continues to claim that the arena is still full despite there being no ongoing duels. The only way I have found to solve this is to reload the config, which obviously makes the use of this plugin extremely inconvenient for public use... Seeing as I can't always be on to reload the config whenever this bug occurs. I really hope you can fix these bugs, or at least the second one mentioned as it makes the plugin impractical to use on my server at this time! I just want to say again though that this is already a great plugin, and has even more potential! Cheers!
EDIT: It appears the bug that leaves some of the players in the arena and doesn't let the arena properly close only happens (or at least happens far more frequently) when the battle is VERY close. I think somehow your plugin is deciding a winner before a player has actually been killed, which in turn I suppose screws up the rest of the system. If you need an example, I was fighting a player in an unarmed fight and I had him at one heart. He hit me and it teleported him out and declared he had won, even though I was still at half-a-heart.
-
View User Profile
-
Send Message
Posted Mar 19, 2014@Iwitrag
No this plugin is based on the Duel Arena from Runescape, there are plenty of other plugins that do that already.
-
View User Profile
-
Send Message
Posted Mar 19, 2014Is there option to automatically give players equip defined in config file? So players will have same items ?
-
View User Profile
-
Send Message
Posted Mar 17, 2014@lecraeman
I need to still add this is a TODO feature I will add but it will be a toggable thing in the config.
-
View User Profile
-
Send Message
Posted Mar 16, 2014@JustDead666
You have to bring your OWN items, and the menu lets you decide what items are allowed...
-
View User Profile
-
Send Message
Posted Mar 16, 2014It seems that peoples swords and armor lose durability during these fights :(
Is there a way to disable that in config?
-
View User Profile
-
Send Message
Posted Mar 15, 2014I don't have any items when i join, how can i fix-it ?
-
View User Profile
-
Send Message
Posted Mar 14, 2014@lecraeman
Good find - page has been fixed. I will need to test the POS commands more I know I switched them back and forth a few times.