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

Limit protected chest per group #8

Open
scorninpc opened this issue May 2, 2020 · 2 comments
Open

Limit protected chest per group #8

scorninpc opened this issue May 2, 2020 · 2 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@scorninpc
Copy link

Can I limit groups protection? Like normal players has 1 chest, vip 5 chest, ...

@doublehelix457
Copy link

This would be awesome to see, provided the person comes back... I was thinking of adding perhaps a permission node for groups. Example:

  • lockettepro.limit.#
  • lockettepro.limit.1 etc and so on.

At the time of writing I'm not sure how easily this can be done in Spigot/Paper/Etc. I was successful in Sponge once.

If its feasible and the author returns ill try submitting a PR for it

@scorninpc
Copy link
Author

scorninpc commented Jun 4, 2020

Ow! Nice to see people interessing =)

On bukkit, you can loop permissions, and check the permission node to get value. Something like that:

for(PermissionAttachmentInfo permission : player.getEffectivePermissions())
{
	if(permission.getPermission().startsWith("lockettepro.limit.") && permission.getValue()) {
		int limit = Integer.parseInt(permission.getPermission().split(".")[2]);
	}
}

ps: sorry if that not run

@Lori3f6 Lori3f6 added wontfix This will not be worked on enhancement New feature or request labels Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants