AntiSpawnCamp
This plugin stops two different types of spawn camping.
- When a player hides next to the spawn of a server, and waits for another player to leave the spawn, so that they can kill them. Referred to as "SpawnType1"
- When a player waits by a player's respawn point to kill them every time they respawn. Referred to as "SpawnType2"
Spawn camping can be one of the biggest problems on any server, whether its a hardcore PvP or server or simply a survival server. If your server contains too many spawn campers, then players (especially new ones) on your server may grow tired of being constantly killed at the main server spawn or their spawn point. This plugin aims to solve this problem and so make your server much more enjoyable and fair.
How It Works:
SpawnType1:
When a player leaves a defined area around your spawn (any number of areas of any size and location) a few changes are made to that player for a defined amount of time (time duration can be any length), these changes include:
- They become invisible - This stops any spawn camper from following a player leaving spawn
- They recieve the effect of a speed potion - This allows a player, who is leaving the spawn, to move away from the spawn faster
- Other players cannot harm them (can still be harmed by mobs and anything else) - This stops other players killing them when they leave the safety of the PvP disabled spawn Configurable Message
- They cannot harm other players - This stops a player, who is leaving spawn, from using their invisibility to have an advantage in PvP combat Configurable Message
- They cannot teleport - This stops a player, who is leaving spawn, from mis-using their invisibility etc... Configurable Message
- They are also sent a message which tells them how long they have to leave the spawn Configurable Message
When the defined amount of time runs out:
- All these changes to the player are removed - Tthey become visible, can PvP, can teleport etc...
- They are sent another message which tells them that this has happend Configurable Message
If a player re-enters a region when their time has not run out yet:
- Changes to the player are removed - When they leave again, the changes will be made again.
SpawnType2:
When a player respawns anywhere (except a defined area) a few changes are made to that player for a defined amount of time (time duration can be any length, even different to SpawnType1's time length), these changes include:
- They become invisible - This stops any spawn camper from following a player leaving spawn
- They recieve the effect of a speed potion - This allows a player, who is leaving the spawn, to move away from the spawn faster
- Other players cannot harm them (can still be harmed by mobs and anything else) - This stops other players killing them when they leave the safety of the PvP disabled spawn Configurable Message
- They cannot harm other players - This stops a player, who is leaving spawn, from using their invisibility to have an advantage in PvP combat Configurable Message
- They cannot teleport - This stops a player, who is leaving spawn, from mis-using their invisibility etc... Configurable Message
- They are also sent a message when they respawn, which tells them how long they have the changes. Configurable Message
When the defined amount of time runs out:
- All these changes to the player are removed - Tthey become visible, can PvP, can teleport etc...
- They are sent another message which tells them that this has happend Configurable Message
If a player enters a region when their time has not run out yet:
- Changes to the player are removed
How To Use It:
Download the most recent AntiSpawnCamp.jar then place that in your plugins folder and run/reload your server. The configuration files should be created.
- Regions: This plugin uses WorldGuard for making the regions, simply create a WorldGuard region around your spawn and then add the name(s) of the region(s) to the configuration. Any region name not put in the configuration, will not be affected at all by AntiSpawnCamp, and so will be ignored.
- Time: To change the length of time a player has the changes (such as invisibility), simply edit the configuration.
- Messages: To change the messages for: when a player leaves a region, when their time runs out after leaving a region, when they repsawn, when their time runs out after respawning, if they try to teleport, if they try to harm another player and if another player is trying to harm them. (These support colour codes)
And thats It!
Permissions:
- antispawncamp.exempt - give this to any player that you want AntiSpawnCamp to ignore.
Configuration:
Latest Update
1.4
Dependencys:
WorldGuard (This requires WorldEdit too) Also, make sure that you give anyone using a Vanish No Packet or similar, the antispawncamp.exempt permission
To Do:
???
Can anyone please update this plugin?
Please update this. This is essential for my server.
This broke with 1.4.6 :<
Will there be a 1.4 update? I was wondering if there would be an option to let people run out of spawn on the North exit and be ignored by the protection but the East and the West exit to be protected since it protects players that run out of a cuboid, so naturally it would be difficult to create a system that protects the players while still letting the PVP fans kill.
Ok I added another update which fixes the bug (1.4), but also allows colour codes. Simply replace § with <color> in your config. I will update the color codes tutorial soon. For example, before if you had §aThis is green. Now use <color>aThis is green.
@MinecraftB0ss
@MinecraftBOss I have fixed the bug, it was caused by the § in the config file. Please dont use colour codes, yet. I will need to fix this. For now colour codes are not supported, but the rest of the plugin should work fine :) Use AntiSpawnCamp version 1.3 (may not be approved yet)
@MinecraftB0ss
Ok, I found the problem
@sharp237
Bukkit version: 1.2.5(running a tekkit server)
Worldguard Version: 5.5.2
Antispawncamp Version: 1.2
@MinecraftB0ss
@MinecraftBoss
I can't seem to re-create your problem with the config not loading, what version of bukkit, worldguard and antispawncamp are you useing?
@MinecraftB0ss
Was that the whole error code? It looks like there is some missing
When i install this plugin, it created a empty config,yml and when i try to copy and paste the config from bukkit dev, it just wipes the config every time the server is restarted. I am also getting this error when people are running around at spawn, not on startup. Hope this can be resolved because i was really looking forward to using this plugin!
Error: http://pastebin.com/Ly20R9vM
@Sharp237
When I installed the plugin, it created an empty config.yml which made those errors, then i pasted it from the bukkitdev page to the config and restarted and it worked.
Just reporting the bug.
@Gunnerrrrr
Was your error caused by a fault in the plugin? (the config wasnt created) or was it caused by you accidently deleting the config?
@Gunnerrrrr
I'm not sure quite what you mean. This plugin should make it so that players cannot spawn kill at all, therefore that message and kick/ban would never be needed. If I'm wrong please can you expand on what you ment :)
This error started spamming the console right when players joined.
http://pastebin.com/UgVTGczx
Everything seems to be working fine though, just lots of spam.
It was actually because no config was created, but after i added it, it worked fine.
Feature request, after sending a message to a player giving them a warning, it will kick/ban them after X amount of times of spawn kills.