DuelMe
NOTICE: You must use Spigot 1.8.8 - 1.11.2+ for this plugin to work, otherwise it will disable if an unsupported server version is used.
Description
DuelMe is a plugin for server owners that want to allow players to Duel each other. I first made this plugin for use on my own server as the world it is used on is non-pvp with the exception of this plugin so that players can duel each other for fun. This can also be used on a pvp server too with less setup time. If your server is non pvp based there is a small bit of setup required.
Player Commands
- /duel - shows information about plugin
- /duel send <playername> - sends a duel request to a player
- /duel send <playername> <arena> - sends a duel request to a player for a specified arena
- /duel accept <playername> - accepts a duel request
- /duel leave - leave a duel
- /duel list - lists duel arenas with their status(es)
- /duel about - more about this plugin.
Player Permisson Nodes
duelme.player.* - Access to all nodes below
- duelme.player.info - access to the duel command
- duelme.player.accept - allow a player to accept a duel
- duelme.player.send - allow a player to send a duel request
- duelme.player.leave - allow a player to leave a duel
- duelme.player.list - allow a player to list the duel arenas and there status(es)
Admin Commands
- /dueladmin create <duelarenaname> - creates a duel arena with the given name
- /dueladmin list - list the duel arenas
- /dueladmin remove - remove a duel arena
- /dueladmin addkill <player> - adds a player kill (for testing mysql stats)
- /dueladmin adddeath <player> - adds a player death (for testing mysql stats)
- /dueladmin setspawnpoint1 <duelarenaname> - Set a spawnpoint for player1 for a duel in a given arena
- /dueladmin setspawnpoint2 <duelarenaname> - Set a spawnpoint for player2 for a duel in a given arena
Admin permissions
duelme.admin.* - allows access to all permission nodes below
- duelme.admin.info - allows a player to view the info for the duel admin commands
- duelme.admin.create - allows a player to create a duel arena
- duelme.admin.set - allows a player to set locations for the arena
- duelme.admin.remove - allows a player to remove an arena
- duelme.admin.list - allows a player to list the duel arenas
- duelme.admin.addkill - allows a player to add a kill to the stats
- duelme.admin.adddeath - allows a player to add a death to the stats
- duelme.admin.setspawnpoint1 - allows a player to set spawnpoint1 for a given duel arena
- duelme.admin.setspawnpoint2 - allows a player to set spawnpoint2 for a given duel arena
Other Permissions
- duelme.* - allows access to all duel commands - Only give to staff / trusted players!
- duelme.update.notify - sends players notifications of plugin updates
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
You can disable the stat collection in the plugins config.yml by changing checkforupdates to false.
Features
- Automatic update checker (Can be disabled)
- Allows players to duel each other in a controlled environment.
- Separated inventories. (Toggleable)
- Blocks cannot be broken in a Duel.
- Teleporting out of a Duel is disabled.
- Players drop no items when they die in a Duel. (Toggleable)
- Undisguises players if they are disguised - will be readded
- Toggle-able Duel start announcements
- Toggle-able Duel death message announcements
- Gives players items defined in config or you can use commands to give kits from another plugin such as essentials.
- MySQL Stats
Features to add
Revise source codeUse own block protection methodSet player spawns for arena in gameCountdown to start- Players can be charged an amount to Duel (configurable)
- MySql database to keep track of kills/deaths
Custom rewards for winnerRight click a player to send a duel requestToggleable storage of inventoriesRewards system- enable drops when a player dies
- add a delay or a way for the winning player to get the losing players items.
- add support for iDisguise
- add support for Vanish no packet
Dependencies
- WorldEdit
- Vault
- Spigot 1.8.7
Optional Dependencies
- DisguiseCraft - used to undisguise disguised players during a Duel
Setup
Changelog
click here
Official Dev Website Post
Official Test Server
come duel with us: play.teozcommunity.com
GitHub
Plugin Stats
Dev Builds / Pre Releases
These releases are experimental and may not have completed features and / or may have unpredicted results when ran so it is not reccomended to run these on production servers, but primarily to test the new upcoming features so the releases will be more stable. These builds are NOT approved by the bukkit team
Use so at your OWN RISK! download here: https://github.com/teozfrank/DuelMe/releases
please post any suggestions you may have for this plugin. I'm open to any at all!
If you have found a bug or an error please submit a ticket http://github.com/teozfrank/duelme/issues any bugs or errors submitted below will be removed and not fixed.
Maybe add spawnpoints for each player? And per battle setting for default items of a players inventory So you can typ /duel send <player> [inventory / kit]
Maybe that you can come up with a better syntax.
@Suzakiryu
I sure will if I get the time :)
@Jleeevinnn
Explain to me why this would be useful?
There should be a config option for dropping inventory on duel loss, betting (vault).
This plugin looks amazing, please provide some sort of tutorial as soon as possible
@drovindiscain
The fix I thought that would fix it wouldn't matter. The player needs to be spawned back to there origional location so that the inventory would be restored that was stored, that applied to the world they were in. It has nothing to do with Multiverse as the player is teleported first, then the inventory is restored. I did not design the plugin to operate with more than two worlds. But this will be fixed in the next version.
MCMMO party you will have to disable mcmmo in the world that you have the arenas. If this is not possible I could look at the API and see can I add support for it.
@teozfrank
What do you mean it wasn't a bug? You were able to attack mcMMO party members? Is there a reason why the wood sword and leather armor is duplicating every time I start a new duel? I think it has something to do with Multiverse Inventories. I look forward to this update, I just hope I can get this plugin working? :(
@CullanP
Yes im sure I can implement that. Im going to do a major update for the next update which will feature the following:
The following will be restored at the end of a duel:
Anything else you would like to be restored? Leave a comment.
Thank you a lot for fixing the duel leave issue. I have one more huge suggestion that would help a lot of the big communities. I know I'm asking for a lot, but I need this plugin to be perfect if I'm going to use it. At the moment, players can just stay inside of an arena forever and not kill each-other if they feel like trolling. I feel as if there should be an option in the config to enable a timer that will count down duels and if the timer ends then the duel will end with it. Configurable timer of course.
@drovindiscain
note that wasnt a bug that I thought it was. When a duel is ended it teleports them to the lobby world and restores there inventories. If the world they were teleported from differs from the lobby world, this would result in the problems you are having. The only way around this would be to store the players origional location and teleport them back there after a duel and restore there inventory there so it would match the world. I will fix this for the next release though dont worry :)
@teozfrank
You're the best! :) I really like how simple your pvp plugin is, I look forward to being able to use it! :)
Teozfrank, any way you could give this Multiverse Inventory/mcMMO party support? I can't use this plugin :( because the Multiverse Inventory plugin I use to give players a separate inventory in the Creative world conflicts with this and players end up getting tons of duplicate items from the duel. Also if they're in a party they can't hurt each other. :( I really like your plugin though!! :(
@CullanP
You can create a pull request on github for that, but it does not solve the issue. Players should be able to leave a duel if they just started one as it would be the same situation if they left the game during that countdown, which is unpreventable, but it can be handled better than I did, I will look into it.
Edit: this should fix it: https://github.com/teozfrank/DuelMe/commit/13edc3ebab04c9f94b5534b9bdf6fbcef73850b4
Forget what I said earlier about the setting of 2 spawn points, I added that feature in myself to your plugin. I also added in a ranking system :P. Would you please add in to the leavecmd.java under if (dm.isInDuel(playername)) { add this below that to fix an issue. If you leave while the timer is going down it bugs the entire plugin and you have to restart server or reload server to fix it. Add http://pastebin.com/ndC7RE7B
I came on to tell you this so any other people with this issue won't have to worry about it.
@CullanP
The fact that players are spawning randomly in the region created is not an issue, its intentional. The plugin does not have support for spawnpoints as of yet. It will be implemented in the future. I cannot estimate as I work on this plugin in my free time and have other features that need to be implemented first, but yes I will be adding it, so don't worry :)
Hi again teoz, but when do you think there will be commands to set the 2 spawn points of the duelers? This is the only issue I'm currently having, When I create arenas they'll spawn randomly somewhere and sometimes they'll even spawn in the air or water
@EvandroCJ
by money support you mean what exactly?
@teozfrank
Hello teozfrank, thanks for the new update.
I have one doubt, will you put the option to punt money soon? I'm currently using this plugin because i'm waiting the money support which no other plugin offers and is very important to my future server, if it is not asking too much, can you take priority with the update?
Thanks for all, you are doing a good job ;)
@CullanP
This has been added to the next release of the plugin which has just been submitted for approval :)
@AlterEgo1337
Yes I have plans to add this in future releases, thanks for the suggestion.
Hi teoz, would you add a feature so items don't drop on death? Would help a bunch, thanks.