2008Choco / VeinMiner

Minecraft Bukkit/Spigot/Paper plugin with Fabric client side mod. Mine multiple blocks of the same type in quick succession.
https://www.spigotmc.org/resources/vein-miner.12038/
GNU General Public License v3.0
108 stars 36 forks source link

Command to directly toggle on/off cmd for players #121

Closed bobhenl closed 3 weeks ago

bobhenl commented 3 weeks ago

Hello, could you please add way to toggle veinminer on/off directly for players, when their rank expire?

Like /veinminer on/off , or support player argument in other commands too

2008Choco commented 3 weeks ago

I think ideally this should be done with permissions, no? You should be able to give your rank the veinminer.veinmine.* permission (or any of its children) to the special rank and revoke it from the default group.

bobhenl commented 3 weeks ago

I think ideally this should be done with permissions, no? You should be able to give your rank the veinminer.veinmine.* permission (or any of its children) to the special rank and revoke it from the default group.

And if they use /veinminer toggle while having the rank, will the removing of veinminer.veinmine.* disallow them to use the veinminer, if they toggled it on previously?

2008Choco commented 3 weeks ago

Yes. That vein mining permission allows them to actually use vein miner regardless of its enabled state. If they don't have that permission, they cannot use vein miner. veinminer.command.toggle is what allows them to toggle it on and off but they still need to have the vein mining permission to actually use it. Just note that veinminer.veinmine.* is default for all players so if you want to remove it, you'll have to negate it in your base group and re-add it to whichever group you want to have it.

bobhenl commented 3 weeks ago

OK, thanks so much! I believe it's solved now