Clash
Clash
Features
Clash is a Bukkit plugin that aims to provide a fairer PVP experience for survival-oriented Minecraft servers. In order to do so, it implements a variety of configurable changes to the way in which PVP combat is managed, including:
- Protection of players from PVP combat within various types of safezone (provided by other plugins such as WorldGuard or GriefPrevention)
- Continued protection of players for a configurable length of time after they leave a safezone, to prevent safezone camping
- Restriction of teleportation for players who are in PVP combat
- Punishment of players who log out during PVP combat
- Per-player enabling and disabling of PVP combat, to protect new players and those who wish to coexist peacefully with others
Additionally, Clash provides an API which other plugins can use to check if a player should be protected, add PVP protection for safezone types not natively supported by Clash, and easily monitor who is in PVP with whom.
Configuration
Plugin functionality is packaged in the form of "modules"; distinct modules are separated by newlines in the config.yml file. Individual plugin mechanics can be turned on and off by enabling and disabling these modules. A default config.yml is generated if none is found in the plugin's data folder; most server owners should be able to get by without changing the default config settings.
The plugin can be enabled or disabled on a per-world basis if necessary. If "restricted-to-approved-worlds" is set to true, plugin mechanics will operate only within worlds listed under "pvp-worlds".
API Usage
After importing Clash.jar as a library, you can develop plugins that utilize Clash's PVP API. Obtain an instance of ClashPlugin from the plugin manager, then use this to obtain a PvpManager instance via ClashPlugin.getPvpManager().
To obtain and modify specific player's associated PVP data, make a call to PvpManager.getPlayerData(String playername) and perform any necessary operations on the PlayerData object.
@simo_415
Thanks man!
For those waiting for an update (like I was), I updated the code found on github and added Faction support. There are a few quirky things that I am still working though (so you may want to run it on a test server to verify first) but it appears to mostly work as I want it to now. The version on github appeared to be a rewrite from the download available here so things may have changed a bit too.
Anyway, here is the compiled version: https://dl.dropbox.com/u/17317177/Clash_1.1.jar
Note that this was tested on Bukkit 1.4.6-R0.4 #2593.
@makskay
Upate :p
@DerpEgg
Joining request
Hey, just wondering if maybe we could have a status update on how things are coming along? :)
@iiPandazz
Yes, sorry about that. I've gotten very busy, and my limited resources are spread pretty thinly across a large number of projects.
Because I intend the next release to be v1.0, I've actually rewritten the core of the plugin from scratch for improved performance and extensibility. I'm getting close to a point at which I'll be comfortable releasing the next version, but there'll be a few more days of limbo while I test, fix bugs and put the finishing touches on everything.
No update yet :/
Your plugin is amazing, thanks so much, exactly what ive been looking for. I have a few issues tho, I use the bending plugin TLA, people can jump high, and when they try, a message pops up saying they arent allowed to tp, is there a way to increase the tp range? So people can use high jump. Also, one of my members went on a pvp rampage and killed many players, then he couldnt tp for a long time after that, I dont know why. Some players cant tp after they die, when they are at spawn. I know there is a 15 second interval where tp is disabled, but in some instances this interval seems to be more than 15 seconds. Sorry for spamming with my issues
Thanks again, <3 Cat
Oh ok
@iiPandazz
I'm getting back home tomorrow, and should have a stable release ready within the next few days.
How much longer :3 (I'm sorry I cant wait for this awesome plugin :( )
@makskay
Thanks for replying I host a hardcore server and everyone runs out of spawn and comes back it's awfully annoying until I found this plugin but found out Factions is a little buggy.
@iiPandazz
I'm working on it. I've been traveling since a day or two after the update and as such haven't had much time to program, but I certainly haven't abandoned the project and I can more or less guarantee a fix within the next two weeks.
When are you gonna update it I love this plugin but have been getting issues with Factions :/
Anxiously awaiting, @makskay. :)
@ktccd
Ah, I see. I can patch in support for Factions and McMMO friendly fire protections fairly easily.
I've looked further into the WorldGuard issue. I might be able to fix it by temporarily setting the event to cancelled at a lower level (before WorldGuard ever sees it) and uncancelling it further down the line; I'll run some testing of that concept and see if it can be implemented in the next update.
Yes, to elaborate: Factions and McMMO have these "friendly fire" protections, allowing people in the same faction to not hurt each other (And McMMO does the same with people inside the same "party"). This plugin seems to uncancel that protection as well, which is a little sad since both factions and McMMO are very popular plugins for PvP servers and I think this plugin could see a lot of use if it was compatible with them. I'd definately install this if I could still use Factions and McMMO with it.
As for worldguard spam, I'm not sure if you can remove the messages either. Maybe you could ask on their forums? It doesn't sound like something that would be impossible to do.
Oh wow... looks like I'm not set up to receive automatic notifications when a comment is posted on this page. I'll have to look into that, I don't want to miss useful discussion like this. Sorry for keeping you all waiting.
@ktccd The WorldGuard conflict is a known issue and I'm looking at a way to resolve it, though that might not be possible as WorldGuard has no way of knowing that the damage event is being un-cancelled at a higher level (which is what this plugin has to do in order to allow PVP in safezones under special circumstances.) As for the Factions issue, I've never used Factions and am not quite sure what the issue you're having actually is - could you elaborate?
@Joe2107 Since I didn't get back to you before, I'll ping you now so you know that I've found and am attempting to resolve the issues you're describing :)
@ryan_the_leach That might be a bit outside the scope of this plugin, as Clash is primarily intended to handle spawn camping and other abusive behavior on servers that allow or encourage PVP. I might actually have something that fits your needs in the pipeline in the form of "PVP karma" that tracks how frequently a particular player is initiating fights with other players - keep an eye on this page for more news on that.
Yeah, I think the plugin might be stealing the damage event from factions and such plugins, but IDK without looking at the source code.
Anyway, this would be perfect if the plugin wasn't so greedy XD.
@ktccd So glad I found this plugin lol, though im also having the same problem as ktccd