Class BanUserRequest

java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.BanUserRequest
All Implemented Interfaces:
sfs3.client.requests.IClientRequest

public class BanUserRequest extends BaseRequest
Banishes a user from the server.

The current user must have administration or moderation privileges in order to be able to ban another user (see the User.privilegeId property). The user can be banned by name or by IP address (see the BanMode class). Also, the request allows sending a message to the banned user (to make clear the reason of the following disconnection) which is delivered by means of the moderatorMessage event.

Differently from the user being kicked (see the KickUserRequest request), a banned user won't be able to connect to the SmartFoxServer instance until the banishment expires (after 24 hours for client-side banning) or an administrator removes his name/IP address from the list of banned users by means of the SmartFoxServer 3 Administration Tool.

See Also: