MobHunting

MobHunting

114k Downloads

HappyHour permissions

Sikatsu opened this issue · 10 comments

commented

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?

commented

The permision is already there

mobhunting.happyhour

Doesnt it work? Are you that you playes dont have this permission?

commented

If I give them mobhunting.happyhour, they can start happyhour as well.

commented

@Rocologo

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.

commented

By any chance you can slip in a fix for this one and make seperate permissions? @Rocologo

commented

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 "));

			}´´´
commented

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...

commented

Hmmm.... I see I will have to look at this again

commented

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.

commented
commented

This matter seems fixed now!