Animal Lock
Animal Lock
A large problem on my server since horses came out was players were taking each other's horses, and other animals. This plugin lets you "claim" or "lock" animals, which will prevent other players from interacting with them.
I wanted to get this beta version out as fast as I could so servers could prevent players from stealing horses. Due to this reason, there are a couple main features that have not been included yet. The ability to unlock horses, and to limit how many animals players can lock have not been implemented yet but are planned for the next update.
Note on Horse's Inventories
Animal Selector will deny you from shift right-clicking an animal. Most users have reported this however there is an easy way to overcome this. Instead of shift right-clicking the horse, simply ride the horse and then press your inventory key.
In the future I'll hopefully come up with a clever way to prevent this minor conflict, but for now just use the alternative method of opening a horse's inventory. ;)
Installation Instructions
- Download the latest version of Animal Lock and place it in your server's plugin folder.
- Also download the compatible version of Animal Selector and place it in your server's plugin folder.
- Restart or completely reload your server.
- Enjoy! (Adjust configuration options if necessary.)
Commands
/a - Shows the command help page.
/a lock [animallock.lock] - After selecting a living entity by holding sneak and right clicking, type this command to lock the animal only to you.
/a unlock [animallock.unlock] - After selecting a entity, type this command to unlock the animal.
In the future, I have plans to let animals have other owners, permissions support, and more.
Support the Development!
I put hours of work into Animal Lock as a learning experience and hobby. If you enjoy using Animal Lock, please consider supporting the development and donating to keep the plugin going. Thanks!
Hi!
I still love this plugin but: Can you add a feature where if you place animals down they get auto-locked? Thanks!
Sidney.
@nxtguy
sorry for the late reply
I meant setting in the config what kind of entities are lockable.
Btw, I tried locking ahorse, but others could still mount my horse and run away with it? Or did I missunderstand the locking idea completely?
@Dr_Bunsen
So you want a setting to limit what players can lock?
The page talks about a beta version? Are you still in beta?
But I can't set this to horses only? idc about all the other animals, they are protected by something else, but I really need to protect the horses only :P
@ThisUsernameIsMine
Yes. By default, locked animals cannot be interacted with (right clicked) and hurt by players other than the owner.
This is all configurable in the configuration file. :)
Will this also protect animals from being killed?
@FeaR1337837
Can't you open a horse's inventory without holding shift?
EDIT: Use the alternative way for opening a horse's inventory. Ride the horse then press your inventory button.
Thank you for making this Plugin!
But i have noticed a bug on my server: I can't open my horse inventory anymore because it will only select the animal.
Why can you not lock villagers? I would really hope you can at least put this in the config for those who do want to lock villagers.
Edit: I submitted a ticket for this.
@CoolKill3r
This is planned, but to get it done quicker please submit a ticket. :)
Could you add something people could have a MAX amount of locked animals?
@kevsidney95
Sure! If I like the video I'll add it to the main page. :D
Ok Thx its a great plugin! ( can i make a video about it?)
@Luckyy13
On the right side of this page, click "Ticket" right beside "Download".
@nxtguy
Tanks.
But where can i make a ticket ?
@Luckyy13
@kevsidney95
This has now been fixed in AnimalLock v1.4 which is uploaded and now awaiting approval.
@kevsidney95
@Luckyy13
I check all my Tickets daily, but not the comments. If you have found a bug and would like it fixed quickly, submit a ticket. ;)
I'll start working on this bug. :)
EDIT: Fixed in AnimalLock v1.4 which is uploaded and now awaiting approval.
@kevsidney95
Indeed this is a bug we have to wait for a BUG fix
Ive found à new bug:you cant kill MOB's with arrows of smite even They arent locked
@mblanchet75
Yes, by default locked animals cannot be killed by other mobs or other players.