ban user for long duration

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

praveen213
Posts: 31
Joined: 27 Dec 2010, 04:56

ban user for long duration

Postby praveen213 » 30 Dec 2011, 07:07

Hi,

My query is with respect to banning users from playing.

if i want the users to ban permamently and not bound to specfic time, what is the value which needs to go in <BanDuration> in config.xml
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Postby rjgtav » 30 Dec 2011, 15:18

Hi.

Well, after some testing, I've found 2 solutions to achieve what you want:

1. If you set the banCleaning setting in the server's config.xml to "manual" (without the quotes), the system doesn't automatically un-ban the user after the specified time. The problem is that, this way, you have to monitor all the bans, and can no longer rely on the BanManager.

2. Instead of using the banManager for the permanent bans, you store instead in your database a boolean called, for example, isBanned, which is true when the user is permanently banned, etc.

You can always set the ban duration to a really high number, but this number will expire some day and the user will get un-banned.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Bosskafett
Posts: 41
Joined: 24 Jan 2012, 00:04

THNKS

Postby Bosskafett » 11 Feb 2012, 18:22

YOU ROCK THIS HOUSE DOWN
if(_global.is_rocketsnail == 1){
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 9 guests