Hi,
Can I inform banned users for how long it has been banned. can I send some info to client side so it can see for how long it should wait
Thanks
Send banned user detailed info
Re: Send banned user detailed info
You can send a message when the user is banned. So you can give them the details there.
Cheers
Cheers
Re: Send banned user detailed info
Hi,
If user is banned where should I send message. It can not trigger join zone event. In custom Login Handler it is still session. There is no user.
If user is banned where should I send message. It can not trigger join zone event. In custom Login Handler it is still session. There is no user.
Re: Send banned user detailed info
Hi,
I have one more related question I will check if user is banned I check it via SmartFoxServer.getInstance().getBannedUserManager().isNameBanned()
I need to find BannedUser object instance and .getBanDurationMinutes() so I can tell how long it has been banned. How I can reach this object faster.
List<BannedUser> banned_list = SmartFoxServer.getInstance().getBannedUserManager().getBannedUsersByName(getParentExtension().getParentZone().getName());
I found this but it gives me list of all the banned users I have to loop through it. Is there a map so I can find BannedUser object. Can I get from some kind of map.
So it could be more performant
Thanks
I have one more related question I will check if user is banned I check it via SmartFoxServer.getInstance().getBannedUserManager().isNameBanned()
I need to find BannedUser object instance and .getBanDurationMinutes() so I can tell how long it has been banned. How I can reach this object faster.
List<BannedUser> banned_list = SmartFoxServer.getInstance().getBannedUserManager().getBannedUsersByName(getParentExtension().getParentZone().getName());
I found this but it gives me list of all the banned users I have to loop through it. Is there a map so I can find BannedUser object. Can I get from some kind of map.
So it could be more performant
Thanks
Re: Send banned user detailed info
ekrem5353 wrote:Hi,
If user is banned where should I send message. It can not trigger join zone event. In custom Login Handler it is still session. There is no user.
When the user is getting banned, you can send a message that will be received by such User and you can tell them how long the ban will last.
Cheers
Re: Send banned user detailed info
ekrem5353 wrote:I found this but it gives me list of all the banned users I have to loop through it. Is there a map so I can find BannedUser object. Can I get from some kind of map.
No there is no such method at the moment.
In terms of performance though it doesn't make much of a difference, since internally the class should create a copy of the internal map data structure to return.
But I understand that it could be more handy. I have added a note in our todo list to add one ore more methods for searching banned Users.
Thanks
Who is online
Users browsing this forum: No registered users and 96 guests