HappyHour permissions
Sikatsu opened this issue · 10 comments
I wanted to give my players the permission to do /mh happyhour and see how long it still lasts for.
Today I noticed players could just start happy hours themselves. Could that permission be split into 2? One to start the happyhour and one to see the remaining time?
The permision is already there
mobhunting.happyhour
Doesnt it work? Are you that you playes dont have this permission?
Any news on this? Also the message that shows how long happyhour is still running for when you login, is linked to mobhunting.happyhour, which you can also start happyhour with. Dangerous to give to players.
By any chance you can slip in a fix for this one and make seperate permissions? @Rocologo
Yes. Show you would like to have a permission
mobhunting.happyhour.admin
and
mobhunting.happyhour
hmmm
I just checked my code and it looks like I have already this ??? May I did this before my dev. enviromment broke and never published this.
´´´
if (sender.hasPermission("mobhunting.happyhour.admin")) {
...
} else {
plugin.getMessages().senderSendMessage(sender,
ChatColor.RED + plugin.getMessages().getString("mobhunting.commands.base.nopermission", "perm",
"mobhunting.happyhour.admin", "command", "happyhour "));
}´´´
Not sure, but I gave them mobhunting.happyhour so they can see the message ''HappyHour is running for .time.'' when they login, and so they can check manually with the command. But with that permission, they can also start happyhour. so yeah...
Thanks a lot, it's one of the most requested thing on my server. They really want to be able to see how long it still runs for, with a command or when they join.
Please test newest build
https://fractal.lindegaard.one:8181/job/MobHunting/