CityGuard
CityGuard
Development Halt
Due to a Bukkit API problem we will no longer update this plugin. Please check out our other plugins which include, HighVoltage, DynamicEconomy,SocietyCraft. We are also currently working on a iOS app which may slow development of our plugins
Individual options for every guard
- horizontal and vertical protection area size
- damage
- toggle invincibility
- a time the guard is active (day, night or all)
- a name
Usage
- It's that easy: Write /guard create and the mob type, e.g. Zombie, and a guard will be created on the position you are looking at.
- To modify a guard, first select it by right clicking it and then use the commands. All default settings a guard will use on creation can be set in the config.
- The guard will now automatically attack hostile mobs and players who attack other players within it's horizontal and vertical radius.
- Also friendly mobs are possible, but of course they can't deal damage to anybody, they only pursuit their target.
- You have to enter the mob names exactly like this: Zombie
- zombie, ZOMBIE, ZOmbie or something else will not work!
- zombie, ZOMBIE, ZOmbie or something else will not work!
Available guard types
Blaze, CaveSpider, Chicken, Cow, Creeper, Enderman, Giant, Monster, MushroomCow, Pig, PigZombie, Sheep, Silverfish, Skeleton, Snowman, Spider, Squid, Villager, Wolf, Zombie
This list could be outdated!
Bugs
It is known that in the latest version of this plugin that the guards may not attack mobs attacking the player. This is due to a bug in the Bukkit API. For more info please look at the link below:
https:bukkit.atlassian.net/browse/BUKKIT-1358
Demonstration Video
(If you live in Germany and the video is blocked, use this one)
Thanks a lot to sooi11 for making this!
Links
Commands & Permissions
Changelog
@NoahIvaldi
Ender_Dragon should work. PM me for a logo ;)
Are enderdragon guards possible? I know that they're coded to flee when looked at except when attacking. I also know that, unless you're putting them near a lot of obsidian/bedrock/open space, having an enderdragon guard would not end well. xD
Unrelatedly, are you still interested in a cool banner? I think that I can get you one.
Is it possible for other people to create kingdoms and there are wars between kingdoms etc. ?!
@LambentMarkus
Could you a give just a bit more information?
It didn't work for me, I couldn't even create a gaurd.
@Squirmles256
Yeah, I will add that as a configuration in the next version.
Great idea! It seems that the Citizens plugin isn't too friendly with recent versions of Bukkit. For this reason, I have decided to give this plugin a chance :).
Is there an option to turn off all of the notifications? That's REALLY annoying if you have a lot of guards in town.
Thanks!
@neimann85
No, not for now...
I was wondering. Can the guards be hostile to everyone? So the simply attack on sight?
I've done a bit more testing of this, and found that as you increase the horizontal size to protect, the amount of time it takes for the mob to respond increases far more than I would expect. When, I tested it with 30 or above, they didn't seem to respond at all. When I changed the default to 100 and tried to use it, the guard didn't behave as a guard at all but just went wondering off, and sometimes after a reload, just behaved as a normal wolf that when attacked became an angry wolf.
hey can you make it so you can disable all messages because it keeps saying im being watched by the guards and its a bit annoying or guard will not harm you anymore
awesome plugin, can you make it so guards never attack specific people or groups? and if someone walks into the guard zone then they attack those people but not the specific people
@SchwarzerZylinder
The second bug (where the guards don't spawn, or spawn as normal mobs) only occurs on server restarts but can be fixed by doing a reload. I try and avoid reloads though, as Spout recommends against it.
@Mako_Shark
On the first bug the guards doesn't recognize, that there target is dead, I will have look at it.
Does the second bug only appear after server restarts and not on reloads?
I've been testing this out on my server and most of the functions work fine. However, I have discovered a couple of bugs that are quite irritating.
One of the bugs is that the guards don't always teleport back to their start point after attacking a player. This appears to only happen when they move outside their own protection radius. Instead of teleporting back, they just stay in their new position and act from there.
The other bug I have discovered is that the guards do not spawn after the server is restarted. I receive the messages for leaving and entering their areas but the actual guards do not exist. If I then use the /reload command, all the guards spawn. Sometimes the mobs that the guards are spawn after a restart, but they are not guards - just normal mobs.
What about using this with Citizens plugin. To make actual guards also. My server is faction driven and Citizen's doesn't enforce the key component in your plugin (Now it will attack hostile mobs and players, which attack other players in their guard region.) Correct me if i'm wrong, but am i understanding that this one feature will
example-Town has multiple guards around the bank<sub>next you have 2 players A and B</sub> A and B are talking and everything is great when player A desides to attack player B<sub> at that point a guard will auto attack player A for starting the fight or the closest player or both?</sub>
if this is true can it be configured to be used like this same over all scenario but add factions into the picture = Town is owned by faction and player A is in the same faction there for guards are loyal to him first<sub> player B comes to town guard don't attack unless player B initiates combat. player can call guards to kill player B if combat has been started,after a set time the combat flag falls off say 30 seconds and now guards are no longer hostile to player B</sub>
The point of this post is to see if this can also be done configured using a NPC priority but if config can be done and i have to use a mob this is still a good option
It made me happy to see someone do something like this reminds me of Ultima Online
@monsterkiller54
Alright, pm me when it's done.
I'll make Your video, I'm making one for another plugin, but its not ready yet. So ill be happy to do this while I'm waiting for him to update it.
Awesome *Hits download button*
@mtjaxter
@monsterkiller54
It is a fully tested release with no bugs, the file just needed some time for approval.
@BeenCarl
I thought of economy support already, if this plugin will be used by some people I will work on it. Armour is not possible, because mobs are unable to wear some.
@MMZero01
Hmm, how would you detect a grief? It would not be very nice if the guard would attack any player who breaks or places a block :)