SelfMutilationPatch
About SelfMutilationPatch:
SelfMutilationPatch is a very simple plugin that serves a major purpose: it patches a flight bypass in NoCheatPlus where they player attacks themselves to get around checks. I noticed that very many Hacked Clients began having this in their arsenal, so I figured I'd make a quick fix. What this does is:
- Checks for when a player is attacked
- If said player is attacking themselves, it kicks that player. Tada.
In-depth of how it works:
- Has a check to determine whenever an entity is attacked
- If the entity that's being attacked is an Player, and the attacker is the same as the attack-ee, then it kicks the player
Change Log:
V:0_2:
- Fixed players kicking themselves by shooting an arrow, then running into it.
V: 0_1:
- Created Plugin
- Added the Check
- Added kicker for when a player is breaking this rule
What might be in the future:
- I may decide to add settings to change the default kick message
- May be able to toggle kicking, instead you might be able to jail the player, or just plain ben them
Donations I do this work to help keep hackers from gaining an advantage over other players. If you like my work, or wish to see me continue to add/better it, donate to me! Donation button is at the top right of this page.
As I said, very basic, but it is very well needed, so I took it upon myself to make this plugin.
@m1enkrafftman
uhh..... all plugins need a plugin.yml plugin.YML would be something like this, so copy that into plugin.yml and see (though i will have prob got this wrong) name: PatchNCPFly main: m1.plugins.antipass.PatchNCPFly version: 1.2 commands:
@Adondriel
if you so want one, just make one yourself :P
um, still no plugin.yml?
@ZeusAllMighty11
Yeah, I have no clue what I was doing then, I was seriously derping.
@m1enkrafftman
lol.... you will always need a plugin.yml for a plugin.
Also, you need:
name: main: description: version:
@Adondriel
Really? That's.... dumb. Oh well, adding one.
./FaceDesk
@m1enkrafftman
no matter what the plugin you have to have a plugin.yml as far as i have noticed, there is no way to get around it.
@weja93 It tried loading the plugin.yml, but I didn't include ones, since it's unnecessary. Will figure out why it's asking for one.
2012-07-30 13:46:04 [SEVERE] Could not load 'plugins/SelfMutilationPatch_02.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:194) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:189) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml ... 8 more
What could cause this?