User gets kicked but no message from admin tool

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

capdetrons
Posts: 72
Joined: 24 Aug 2013, 09:15
Location: Barcelona
Contact:

User gets kicked but no message from admin tool

Postby capdetrons » 20 Sep 2013, 13:58

I wonder if my server is not properly setup because when I kick someone, he is disconnected but he gets no message at all even though I've activated the badword and the anti flood filters. I'm using smartFox 1.6 patched to 1.9.
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: User gets kicked but no message from admin tool

Postby rjgtav » 20 Sep 2013, 23:24

I'm sorry but I got a bit confused with your topic.
Are you actually kicking the users via a Moderator/AdminTool, or are you only enabling the badwords and flood filters?
If you're only using the filters, can you post the configuration you're using for them?

Thanks
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.
capdetrons
Posts: 72
Joined: 24 Aug 2013, 09:15
Location: Barcelona
Contact:

Re: User gets kicked but no message from admin tool

Postby capdetrons » 21 Sep 2013, 11:43

Hi, Rjtavv,

thanks for the reply. I'm editing this post I wrote last night because I realized I was missing the administrator response handling events and clip in the client. Fixed that downloading the old examples from version 1.6.6. But it still doesn't work fully. It does on Flash preview, locally I believe, but it kicks the user without showing the message when I use it to kick someone on line.

Code: Select all

<SmartFoxConfig>
   
   <ServerSetup>

      <ServerIP>*</ServerIP>
      <ServerPort>9339</ServerPort>
      
      <AutoSendPolicyFile>true</AutoSendPolicyFile>
      <MaxUserIdleTime>10000</MaxUserIdleTime>
      <MaxSocketIdleTime>10000</MaxSocketIdleTime>
      
      <MaxRoomVars>-1</MaxRoomVars>
      <MaxUserVars>-1</MaxUserVars>
      
      <UserVarsOptimization>true</UserVarsOptimization>
      
      <AntiFlood active="true">
         <MinMsgTime tolerance="5">1000</MinMsgTime>
         <MaxRepeatedMessages>3</MaxRepeatedMessages>
         <WarningsBeforeKick>2</WarningsBeforeKick>
         <WarningMessage><![CDATA[No flooding allowed!)]]></WarningMessage>
         <KickMessage><![CDATA[You've been warned! No flooding! Now you're kicked]]></KickMessage>
         <BanMessage><![CDATA[Stop Flooding!! You're being banned]]></BanMessage>         
         <BanAfter timeSpan="1">3</BanAfter>
      </AntiFlood>
      
      <BadWordsFilter active="true">
         <FilterMode>filter</FilterMode> <!-- REMOVE or FILTER -->
         <StripCharacters><![CDATA[,.;:_!$%&/#*-+]]></StripCharacters>
         <Warnings>true</Warnings>
         <FilterRoomNames>true</FilterRoomNames>
         <FilterUserNames>true</FilterUserNames>
         <WarningsBeforeKick>3</WarningsBeforeKick>
         <WarningMessage><![CDATA[No swearing!)]]></WarningMessage>
         <KickMessage><![CDATA[You've been warned! No Swearing! Now you're kicked]]></KickMessage>
         <BanMessage><![CDATA[Stop Swearing! You're being banned!]]></BanMessage>   
         <BanAfter timeSpan="1">3</BanAfter>
         
         <BadWordsList>            
            <badWord>dickhead</badWord>
            <badWord>asshole</badWord>
            <badWord>shithead</badWord>
            <badWord>shit</badWord>
            <badWord>fucking</badWord>
            <badWord>fuck</badWord>
            <badWord>dickhead</badWord>
            <badWord>bastard</badWord>
            <badWord>nigger</badWord>
            <badWord>idiot</badWord>
            <badWord>bitch</badWord>
         </BadWordsList>
      </BadWordsFilter>
      
      <BanCleaning>auto</BanCleaning>
      <BanDuration>1800</BanDuration> <!-- 30 min -->
      <BannedLoginMessage>You have been banned!</BannedLoginMessage>
      
      <OutQueueThreads>1</OutQueueThreads>
      <ExtHandlerThreads>1</ExtHandlerThreads>
      <MaxWriterQueue>50</MaxWriterQueue>
      
      <ClientMessagQueue>
         <QueueSize>100</QueueSize>
         <MaxAllowedDroppedPackets>10</MaxAllowedDroppedPackets>
      </ClientMessagQueue>
      
      <MaxIncomingQueue>5000</MaxIncomingQueue>
      <DeadChannelsPolicy>strict</DeadChannelsPolicy>
      <MaxMsgLen>4096</MaxMsgLen>
      
      <LogMaxSize>5000000</LogMaxSize>
      <LogMaxFiles>5</LogMaxFiles>
      
      <FileLoggingLevel>INFO</FileLoggingLevel>
      <ConsoleLoggingLevel>INFO</ConsoleLoggingLevel>   
      
      <AdminLogin>me</AdminLogin>
      <AdminPassword>myself</AdminPassword>
      
      <AdminAllowedAddresses>
         <AllowedAddress>*.*.*.*</AllowedAddress>
      </AdminAllowedAddresses>
      
      <ExtensionRemoteDebug>true</ExtensionRemoteDebug>
      
      <AutoReloadExtensions>true</AutoReloadExtensions>
      
      <ExtensionRemoteDebug>true</ExtensionRemoteDebug>
      
      <IpFilter>0</IpFilter>
      
      <Mailer>
         <MailHost>smtp.gmail.com</MailHost>
         <MailUser>jpuigmiquel</MailUser>
         <MailPass>password</MailPass>
         <SmtpPort>25</SmtpPort>
         <WorkerThreads>1</WorkerThreads>
      </Mailer>
      
      <EnableZoneInfo>false</EnableZoneInfo>
      
      <WebServer active="true">
         <CfgFile>webserver/cfg/jetty.xml</CfgFile>
      </WebServer>
      
      <RawProtocolSeparator><![CDATA[%]]></RawProtocolSeparator>
      
      <EnableNPC>true</EnableNPC>
      
      <DynamicPropertiesClass>java.util.concurrent.ConcurrentHashMap</DynamicPropertiesClass>
      
      <WarnOnWrongZoneRequest><![CDATA[Invalid zone: %s]]></WarnOnWrongZoneRequest>
      -->
   </ServerSetup>
   
   <Zones>   
   
      <Zone name="simpleChat" uCountUpdate="true" buddyList="20" maxUsers="4000" customLogin="false">
         <Rooms>
            <Room name="The Hall" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="true" />      
            <Room name="The Kitchen" maxUsers="50" isPrivate="false" isGame="false" isTemp="false" />
            <Room name="The Garden" maxUsers="50" isPrivate="false" isTemp="false" />
            <Room name="The Bathroom" maxUsers="50" isPrivate="false" isTemp="false" />
            <Room name="The Garage" maxUsers="50" isPrivate="false" isTemp="false" />
            <Room name="The Living Room" maxUsers="50" isPrivate="true" isTemp="false" pwd="test" />
         </Rooms>
         
         <Extensions>
            <extension name="json" className="jsonSample.as" type="script" />
         </Extensions>
         
         <Moderators status="on">
            <Mod name="Pucci" pwd="password" />
         </Moderators>
      </Zone>
      
      <Zone name="dbZone" customLogin="false" buddyList="20">
         <Rooms>
            <Room name="MainRoom" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
         
         <Extensions>
            <extension name="dbTest"  className="dbExtension.as" type="script" />
            <extension name="dbTestAdv"  className="dbExtensionAdv.as" type="script" />
            <extension name="simpleExt"  className="simpleExt.as" type="script" />
         </Extensions>
         
         <DatabaseManager active="false">
            
            <Driver>sun.jdbc.odbc.JdbcOdbcDriver</Driver>
            <ConnectionString>jdbc:odbc:sfsTest</ConnectionString>
            
            <Driver>org.gjt.mm.mysql.Driver</Driver>
            <ConnectionString>jdbc:mysql://192.168.0.1:3306/sfsTest</ConnectionString>
            
            <UserName>yourname</UserName>
            <Password>yourpassword</Password>
            
            <TestSQL><![CDATA[SELECT COUNT(*) FROM contacts]]></TestSQL>
            
            <MaxActive>10</MaxActive>
            <MaxIdle>10</MaxIdle>
            
            <OnExhaustedPool>fail</OnExhaustedPool>
            <BlockTime>5000</BlockTime>
               
         </DatabaseManager>
      </Zone>

      <Zone name="sftris" emptyNames="true">
         <Rooms>
            <Room name="The Entrance" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
      </Zone>
      
      <Zone name="mazeGame">
         <Rooms>
            <Room name="The Entrance" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
      </Zone>
      
      <Zone name="loginZone" emptyNames="false" customLogin="true">
         <Rooms>
            <Room name="The Hall" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
         
         <Extensions>
            <extension name="loginEx"  className="loginExample.as" type="script" />
         </Extensions>
      </Zone>
      
      <Zone name="multiChat">
         <Rooms>
            <Room name="Main Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
      </Zone>
      
      <Zone name="yahtzee">
         <Rooms>
            <Room name="The Entrance" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
      </Zone>
      
      <Zone name="slogin" emptyNames="false" customLogin="true">
         <Rooms>
            <Room name="The Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
            <Room name="The Garden" maxUsers="50" isPrivate="false" isTemp="false" />
            <Room name="The Swimming Pool" maxUsers="50" isPrivate="false" isTemp="false" />
         </Rooms>
         
         <Extensions>
            <extension name="slogin"  className="secureLogin.as" type="script" />
         </Extensions>
      </Zone>
      
      <Zone name="pixel" uCountUpdate="true" customLogin="true">
         <Rooms>
            <Room name="The Basement" maxUsers="4" isPrivate="false" isGame="false" isTemp="false" />
         </Rooms>

         <Extensions>
            <extension name="pixel"  className="pixelGame.as" type="script" />
            <!--
               To use the java extension instead of the Actionscript one substitute the above line with this:
               
               <extension name="pixel"  className="it.gotoandplay.extensions.examples.PixelGame" type="java" />
               
            -->
         </Extensions>   
      </Zone>
      
      <Zone name="letters">
         <Rooms>
            <Room name="Main" maxUsers="50" autoJoin="true" />
         </Rooms>

         <Extensions>
            <extension name="Letters" className="Letters.as" type="script" />
         </Extensions>
      </Zone>
      
      <Zone name="messenger" customLogin="true" buddyList="200">
         <MaxBuddyVars>2</MaxBuddyVars>
         <Rooms>
            <Room name="Main" autoJoin="true" limbo="true"/>
         </Rooms>

         <Extensions>
            <extension name="smsg" className="smartMessenger.as" type="script" />
         </Extensions>
      </Zone>
      
      <Zone name="imgMan" emptyNames="true">
         <AutoReloadExtensions>true</AutoReloadExtensions>
         <Rooms>
            <Room name="MainLobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
         
         <Extensions>
            <extension name="imgman" className="imageManager.as" type="script"></extension>
         </Extensions>
      </Zone>
      
      <Zone name="bomberman" emptyNames="true">
         <Rooms>
            <Room name="Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
      </Zone>
      
      <Zone name="h2dbzone" customLogin="false">
         <AutoReloadExtensions>true</AutoReloadExtensions>
         
         <Rooms>
            <Room name="Lobby" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="true" />
         </Rooms>
         
         <DatabaseManager active="true">
            <Driver>org.h2.Driver</Driver>
            <ConnectionString>jdbc:h2:tcp://localhost:9009/examples</ConnectionString>
            
            <UserName>sa</UserName>
            <Password></Password>
            
            <TestSQL><![CDATA[SELECT COUNT(*) FROM retrocomputers]]></TestSQL>
            
            <MaxActive>10</MaxActive>
            <MaxIdle>10</MaxIdle>
            
            <OnExhaustedPool>fail</OnExhaustedPool>
            <BlockTime>5000</BlockTime>
         </DatabaseManager>
         
         <Extensions>
            <extension name="h2db_ext"  className="internalDbDemo.as" type="script" />
         </Extensions>
      </Zone>
      
      <Zone name="advBuddyList">
         
         <BuddyList active="true">
            <size>200</size>
            <maxBuddyVariables>5</maxBuddyVariables>
            <mode>advanced</mode>
            
            <offLineBuddyVariables>true</offLineBuddyVariables>
            <permissionTimeOut>10</permissionTimeOut>
            <mutualAddBuddy>true</mutualAddBuddy>
            <mutualRemoveBuddy>true</mutualRemoveBuddy>
         </BuddyList>
         
         <Rooms>
            <Room name="Lobby" autoJoin="true" limbo="true" maxUsers="10000"/>
         </Rooms>
         
      </Zone>
      
      <Zone name="sloader">

         <Rooms>
            <Room name="Lobby" autoJoin="true" limbo="true" maxUsers="10000"/>
         </Rooms>
         
         <Extensions>
            <extension name="loader" className="it.gotoandplay.extensions.examples.SocketFileLoader" type="java" />
         </Extensions>
         
      </Zone>
      
      <Zone name="SmartVideoClipPlayer" uCountUpdate="true" maxUsers="50" customLogin="false">
         <Rooms>
            <Room name="The Lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="true" />
         </Rooms>
         
         <Extensions>
            <extension name="__$RedBox$__" className="com.smartfoxserver.redbox.RedBoxExtension" type="java" />
         </Extensions>
      </Zone>

      <Zone name="SmartMessengerAV" customLogin="true" buddyList="200">
         <MaxBuddyVars>2</MaxBuddyVars>
         <Rooms>
            <Room name="Main" autoJoin="true" limbo="true"/>
         </Rooms>

         <Extensions>
            <extension name="smsg" className="smartMessenger.as" type="script" />
            <extension name="__$RedBox$__" className="com.smartfoxserver.redbox.RedBoxExtension" type="java" />
         </Extensions>
      </Zone>

      <Zone name="SmartChatAV" uCountUpdate="true" maxUsers="4000" customLogin="false">
         <Rooms>
            <Room name="The Hall" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" uCountUpdate="true" />      
            <Room name="The Kitchen" maxUsers="50" isPrivate="false" isTemp="false" />
            <Room name="The Garden" maxUsers="50" isPrivate="false" isTemp="false" />
            <Room name="The Bathroom" maxUsers="50" isPrivate="false" isTemp="false" />
            <Room name="The Garage" maxUsers="50" isPrivate="false" isTemp="false" />
         </Rooms>
         
         <Extensions>
            <extension name="__$RedBox$__" className="com.smartfoxserver.redbox.RedBoxExtension" type="java" />
         </Extensions>
      </Zone>

      <Zone name="SmartVideoConference" uCountUpdate="true" maxUsers="4000" customLogin="false">
         <Rooms>
            <Room name="Conference hall 1" maxUsers="10" isPrivate="false" isTemp="false" autoJoin="true" />      
            <Room name="Conference hall 2" maxUsers="10" isPrivate="false" isGame="false" isTemp="false" />
            <Room name="Conference hall 3" maxUsers="10" isPrivate="false" isGame="false" isTemp="false" />
         </Rooms>
      </Zone>
      
      <Zone name="openspace" uCountUpdate="true" maxUsers="200" customLogin="false">
         <Rooms>
            <Room name="Ranch (inside)" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" />
            <Room name="Ranch (outside)" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" />
            <Room name="Slopes area" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" />
         </Rooms>
      </Zone>
   
   </Zones>
   
   
</SmartFoxConfig>
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: User gets kicked but no message from admin tool

Postby Lapo » 01 Oct 2013, 10:47

In order to "see" the message you need to handle the Moderator and Administrator messages.
Depending on who is kicking the user (a mod or admin) one of those messages will be sent prior to the disconnection. Check the client docs for more details, they basically work like a public message.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 48 guests