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
ban user for long duration
-
- Posts: 31
- Joined: 27 Dec 2010, 04:56
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.
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.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
-
- Posts: 41
- Joined: 24 Jan 2012, 00:04
THNKS
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
mc.snail._visible = true;
smartfox.setUserVariables({snl:1, init:false})
}
The Re-creator of Old Games ;D
Who is online
Users browsing this forum: No registered users and 22 guests