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?
Help Implementing ban an offline user in a button
-
Ninjaoninja2
- Posts: 204
- Joined: 22 Sep 2013, 23:33
Re: Help Implementing ban an offline user in a button
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
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
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.
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.