Page 1 of 1

Help Implementing ban an offline user in a button

Posted: 21 Feb 2015, 00:55
by Ninjaoninja2
Hi there,
I have made a ban and kick button using the kick and ban functions supplied with the SFS API but the ban and kick buttons can only ban and kick users who are online, I need to know how I can use the banOfflineUser function in SFS on a button, is there a way?

Re: Help Implementing ban an offline user in a button

Posted: 22 Feb 2015, 10:29
by Lapo
Hi,
no banning an offline user can be done only from server code or from the Admin Tool.

The client-side ban/kick functions will work only for users that are online.

Cheers

Re: Help Implementing ban an offline user in a button

Posted: 01 Mar 2015, 01:14
by WoWoX
You cannot ban an offline user using the admin extension.
I would recommend to make a database with a users table. For each user, have a banned column. Create an extension to check upon login for the value of this column and refuse the login if they are banned.