tft-02 / duel Goto Github PK
View Code? Open in Web Editor NEWBukkit plugin which allows players to duel each other in a intuitive way - without using any commands.
Bukkit plugin which allows players to duel each other in a intuitive way - without using any commands.
After respawning armor is lost when the player's inventory is full
If a duel is taking too long, it will result in a tie
Running away from a duel results in a loss
doesnt show the rest of the commands or how to use duel
duel should not be able to be accepted or started if a player is in "creative" gamemode.
Blacklist or whitelist certain regions
Would be awesome if there was an option to disable fly when a duel starts.
Okay. It might be me but you definitely seem to have issues with factions xD
if dueling in safezone or warzone, and you die, Ores, weapons, tools, food etc seem to duplicate for no reason. i can assume its because those areas are "
keep item on death "and your plugin forces that also, ending in duplication
It's possible to challenge a player to a duel, while already dueling a different player.
Ive got a new Problem, although every plugin exept MyWorlds has pvp enabled and in Duel the setting for overwrite pvp prevention is enabled, iam not able to make duels. The Duel starts, i cant hit anyone and after 2-3 seconds it ends in tie.
Using Residence, WorldGuard and MyWorlds, all of them latest versions.
Edit: enabled every pvp protection from any other plugin, with latest dev build i can damage other players now, but after after a few seconds it still ends in a tie ._.
Allow wagers for the victor of a duel.
Hi, I like your plugin and I would like to suggest a feature. Adding the option to stake items would be a great feature to your plugin, like an inventory pops up and you can drag items into it, those items will be staked. There should also be an option to disable potions or food during the duel, and an option to disable switching swords.
It would be cool if some kind of flag or mark spawned when dueling so you know the radius and where the middle is,
i was thinking maby 3 fences on top of eachother and a whool as "flag"
something like that
2013-04-29 17:04:15 [INFO] §fTfT_02§7 slays §5TfT_01§7 with a §3Diamond Sword§7!
2013-04-29 17:04:48 [SEVERE] Could not pass event PlayerDeathEvent to Duel v0.0.2
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.v1_5_R2.event.CraftEventFactory.callPlayerDeathEvent(CraftEventFactory.java:339)
at net.minecraft.server.v1_5_R2.EntityPlayer.die(EntityPlayer.java:282)
at net.minecraft.server.v1_5_R2.EntityLiving.damageEntity(EntityLiving.java:750)
at net.minecraft.server.v1_5_R2.EntityHuman.damageEntity(EntityHuman.java:684)
at net.minecraft.server.v1_5_R2.EntityPlayer.damageEntity(EntityPlayer.java:347)
at net.minecraft.server.v1_5_R2.EntityLiving.a(EntityLiving.java:978)
at net.minecraft.server.v1_5_R2.EntityHuman.a(EntityHuman.java:1295)
at net.minecraft.server.v1_5_R2.Entity.a(Entity.java:772)
at net.minecraft.server.v1_5_R2.EntityLiving.a(EntityLiving.java:243)
at net.minecraft.server.v1_5_R2.EntityPlayer.b(EntityPlayer.java:452)
at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:425)
at net.minecraft.server.v1_5_R2.Packet10Flying.handle(SourceFile:136)
at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292)
at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110)
at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35)
at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:580)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NullPointerException
at com.me.tft_02.duel.datatypes.player.PlayerData.getDuelTargetName(PlayerData.java:29)
at com.me.tft_02.duel.datatypes.player.PlayerData.getDuelTarget(PlayerData.java:36)
at com.me.tft_02.duel.datatypes.player.PlayerData.areDueling(PlayerData.java:63)
at com.me.tft_02.duel.listeners.PlayerListener.onPlayerDeathEvent(PlayerListener.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 24 more
Announce that a duel will commence to nearby players, preferably with a fancy countdown.
Towny Support!
Wyoskyguy
Jun 20, 2013 at 11:25
Yes I agree with MRCartm0n! Challenging players and fighting with fists like real men!
And
MRCartm0n
Jun 20, 2013 at 11:23 - 0 likes Like
Would be cool if we can challenge players without weapons!
I have the config set to override WorldGuard's PVP setting but I still can't pvp (Latest spigot 1.8).
Also, can you stop people from going into GM 1 while duelling?
Thanks.
On my server, when players attempt to challenge another player with right click or command, the following error appears and nothing happens in-game.
I am running Duel 0.1.2-b189 and WorldGuard 6.1
21.12 17:22:54 [Server] INFO ... 15 more
21.12 17:22:54 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at com.me.tft_02.duel.commands.DuelCommand.onCommand(DuelCommand.java:42) ~[?:?]
21.12 17:22:54 [Server] INFO at com.me.tft_02.duel.commands.ChallengeCommand.onCommand(ChallengeCommand.java:38) ~[?:?]
21.12 17:22:54 [Server] INFO at com.me.tft_02.duel.util.player.DuelManager.canDuel(DuelManager.java:65) ~[?:?]
21.12 17:22:54 [Server] INFO at com.me.tft_02.duel.util.RegionUtils.canDuelHereWG(RegionUtils.java:22) ~[?:?]
21.12 17:22:54 [Server] INFO at com.me.tft_02.duel.util.RegionUtils.getRegion(RegionUtils.java:60) ~[?:?]
21.12 17:22:54 [Server] INFO Caused by: java.lang.IncompatibleClassChangeError: Found interface com.sk89q.worldguard.protection.ApplicableRegionSet, but class was expected
21.12 17:22:54 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.7.0_72]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_72]
21.12 17:22:54 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_72]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
21.12 17:22:54 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'duel' in plugin Duel v0.1.2-b189
21.12 17:22:54 [Server] INFO [17:22:54 ERROR]: null
Drop_Item_On_Lose: true/false
Since there are no reward on this plugin. Doing this would be great :D also it makes my day :P
i have worldedit 6 beta 5 and im getting this error every time i or anyone else trys to duel.
When I edit the config, save it, go into the game, do /duel reload the config resets. I really want to be able to make it so players drop their items upon death but because of this I can't make that happen.
Please Fix..
at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1118)
at net.minecraft.server.v1_5_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:191)
at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityDamageByEntityEvent.getDamage()D
at com.me.tft_02.duel.listeners.EntityListener.onEntityDamageByEntityLowest(EntityListener.java:73)
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 21 more
12:21:19 [SEVERE] Could not pass event EntityDamageByEntityEvent to Duel v0.1.0-dev-b40
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callEvent(CraftEventFactory.java:89)
at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:377)
at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:402)
at net.minecraft.server.v1_5_R3.EntityLiving.damageEntity(EntityLiving.java:681)
at net.minecraft.server.v1_5_R3.EntityMonster.damageEntity(EntityMonster.java:39)
at net.minecraft.server.v1_5_R3.EntityHuman.attack(EntityHuman.java:874)
at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1118)
at net.minecraft.server.v1_5_R3.Packet7UseEntity.handle(SourceFile:36)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:191)
at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
at org.spigotmc.MultiplexingServerConnection.b(MultiplexingServerConnection.java:72)
at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:583)
at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227)
at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:472)
at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NoSuchMethodError: org.bukkit.event.entity.EntityDamageByEntityEvent.getDamage()D
at com.me.tft_02.duel.listeners.EntityListener.onEntityDamageByEntity(EntityListener.java:28)
at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 21 more
It would be cool if you could enable it so the loser of the duel would lose all his stuff from his inventory.
If a player has PvP off, turn it on and make it unable to be toggled (or disable command) during the fight.
Keep track of wins/losses/ties
Hey there I have been looking around and I am curious to know if your plugin is 1.8 compatible. The reason I ask is because I would like to implement a dueling system into my server that will allow in faction fighting and let players duel for power and control over a faction if not impressed with whoever is in control. Also is group dueling within a faction a possibility?
This plugin is fantastic but GLOBAL duel announcing? Does not work on large servers - must only go to the 2 people in the duel OR a config distance - like 25..
Make players in a Duel Can't see other players.
I have a PvPKit Server, I wanted to add a /duel feature however I have problems
with
# Should Duel prevent player versus player combat outside duels?
Prevent_PVP: true
# Override PVP prevention from other plugins?
Override_PVP: false
If I set true Override PVP Prevention from other plugins players can't attack others only in duel
If i #Should Duel prevent player versus player combat outside duels false players will be able to attack everyone, incluiding while they are in duel
While adding this feature none of those features will be necessary
Challenge players to a duel without commands, right-click while holding a sword to challenge a player.
The countdown.. it should only go to the two people who are IN the duel...
The global (radius) message should say [duel] TFT is about to duel MISH! the [duel] above should be able to be customized.
I really think this plugin has a lot of potential and keep coming back to it! Just less spammy on large servers and its golden.
The range in which players will receive messages about a duel starting Message_Range: 10
This can not be working properly... I still see the spam very far away.. unless /duel reload is failing me
"a duel has endedin a tie!" needs fixed (or again.. customizable ;)
I may suggest as well "disable commands" while inside a duel.
((again love the idea of this plugin! well done!))
An option to limit duels to specific worlds would be most welcomed. I can see in its current state players using it to duel each other while an enemy is trying to siege them to keep from being harmed while backup arrives. If I could limit it to my spawn world which is safe anyways then this would be a non-issue.
I've noticed that if I have PVP disabled thrue some other plugins it doesn't let me duel (since they still have pvp off). I fixed this by just using duels own no-pvp flag but it seem this is still active in minigames where you should be able to kill each other.
A way to set the pvp flag per world would be a great solution since I then just put these arenas in a new world where I'd have the non-pvp flag set to off.
Would be awesome if there was a possibilty to build an arena and set it so that when a duel starts the players in the duel are teleported to the arena and when the duel is finished they are teleported back to their original spot.
Also a way to clear their inventory before a duel and give them a set of equip so they both use the same weapons and armour.
Just some thoughts on thís.
Btw, how well does this work with McMMO?
Allow duelling users to wager in-game currency via iConomy or equivalent plugins.
Suggested commands (pseudo-code):
/duels wager {default = 0}
if user1 wager = user2 wager
duel commence = true;
else
duel start = false
print user2 wager
// assumption is that both users will negotiate on a wager, if any... if they just want to kill each other, they can set the wager to '0'
Add MySQL support and API
I've tried everything just nothing works....... version 0.1.1 Please fix or help...
Add leader-boards to check who has the highest win/loss ratio, amount of wins, amount of losses.
Allow players to pvp their faction mates while in duel
There is a bukkit plugin named Duel. it has this feature. Im sure you could take a look at the coding in it and copy it over!
a score board sign that displays the top 4 duelists with the best win/lose ratios.
10:09:49 [javastacktrace] java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()Ljava/util/Collection;
10:09:49 [javastacktrace] at com.me.tft_02.duel.Duel.onEnable(Duel.java:78) ~[?:?]
10:09:49 [javastacktrace] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugin(CraftServer.java:446) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.enablePlugins(CraftServer.java:380) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at net.minecraft.server.v1_7_R3.MinecraftServer.n(MinecraftServer.java:352) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at net.minecraft.server.v1_7_R3.MinecraftServer.g(MinecraftServer.java:326) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at net.minecraft.server.v1_7_R3.MinecraftServer.a(MinecraftServer.java:282) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:182) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
10:09:49 [javastacktrace] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
Having essentials godmode enabled during a duel will cause a player to die and lose his items.
You could add in a few commands to duel another player, instead of right-clicking with a weapon, like so:
I'm also wondering if you could make the "right-click-with-sword/axe-to-duel" feature configurable between "true" or "false", seeing as not everyone may want it.
You may wonder, "Why add commands?" I can think of three reasons:
"/duel request " lets you send a request to duel a player. You must specify a player name.
"/duel accept [player]" lets you accept a duel request. Specifying a player name is optional, but you can only accept a request from a player who has sent you one. If you don't specify a name, you will accept the last pending duel request sent to you.
"/duel confirm" lets you confirm the acceptance of a duel. Requiring a duel request to be confirmed before starting a duel should be configurable, but I think this would be a nice addition to have, to absolutely ensure no duels are accidental. When you are confirming a duel, you are confirming the last duel request you accepted. (If the requirement to confirm a duel before starting one is true, you can accept many duels at once and/or the same duel more than once, but this command will only confirm the last accepted duel.)
These commands are just an idea on how you can implement commands into the plugin. You can do it your own way if you want to, but I just want to see commands implemented so that I can use this plugin with a plugin like RPG Click.
Do not let other players interfere while two players are dueling
A valid duel object could not be loaded spam - with latest citizens+sentry builds on test server.
Build #198
i get this error when i challenge some one
11:12:17 PM CONSOLE: java.lang.IncompatibleClassChangeError: Found class com.sk89q.worldguard.protection.ApplicableRegionSet, but interface was expected
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.