Hi,
I'm using SFS 2.17.0. It's possible to add usernames to SFS ban list via Ban Manager panel in SFS Admin Tool. But I want to add usernames to this Ban List via server-side Java extension.
There are 2 banUser() methods in SFS API, but both are requesting a User object as parameter, instead of username. I can get that User object using zone.getUserByName(username), but I can't do that if that user is offline. Is there an easy way to do that via API?
Is it possible to ban a username?
Re: Is it possible to ban a username?
Oh, I guess there is a BannedUserManager out there, I will try it out.
Re: Is it possible to ban a username?
Hi,
yes but also see the AdminTool documentation here:
http://docs2x.smartfoxserver.com/Gettin ... BanManager
Cheers
yes but also see the AdminTool documentation here:
http://docs2x.smartfoxserver.com/Gettin ... BanManager
Cheers
Who is online
Users browsing this forum: No registered users and 102 guests