Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a container only be lockable for a player if they placed it + limit to how many containers can be locked. #1

Open
WaldperlachFabi opened this issue Mar 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@WaldperlachFabi
Copy link

I really like the Plugin!

I would really enjoy it, if you could add a command, you can use to enable/disable that you can only /lock chest, shulker,… when you placed them. I would enjoy, if you could set a Limit that very player could only lock 3 chests, shulker,… using a command like /lock setmax 3

Thank you!

@WaldperlachFabi WaldperlachFabi changed the title Add feature Add features Mar 31, 2023
@earomc
Copy link
Owner

earomc commented Aug 13, 2023

I mean that would probably necessitate having a configuration file to save whether locking containers that you don't own is enabled or not.
I would also have to save in the container's NBT data who placed the chest. Shouldn't be too hard.

For the other feature you would probably need a database to save how many chests a player has locked. Both features would make the plugin a lot more complex than it currently is. All this plugin adds at the moment is proper event handling for the vanilla lock nbt tag and a way to add the tag with commands so that you can actually use the vanilla lock feature in the game.

I'm a bit hesitant to add the second feature as this is supposed to be a very light-weight and vanilla-like plugin for very small communities that trust each other. If a player locks a chest, it is logged in the console, so if there's a player who is going around locking a lot of chests that he isnt supposed to, an admin can see that in the console and ban the player.

First feature seems like a good idea tho, im definitely considering it :)

And btw sorry for the late answer, i've been a bad dev 😅

@earomc earomc changed the title Add features Make a container only be lockable for a player if they placed it + limit to how many containers can be locked. Aug 13, 2023
@earomc earomc added the enhancement New feature or request label Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants