I've been trying to use static variable to transmit data between 2 extensions, but it seems like each extension has their own, isolated instance of the variable.
I searched the forums and it came up with this (from SFS1): viewtopic.php?f=4&t=11643&hilit=sharing+variables
Based on that, I changed my .bat file (Windows) to be as follows:
Code: Select all
@..\jre\bin\java.exe -cp "./;lib/*;lib/Jetty/*;extensions/__lib__/*;./javaExtensions/*" -Dfile.encoding=UTF-8 com.smartfoxserver.v2.Main %1 %2
Unfortunately, the problem still persists. Did I change my server file the wrong way, has SFS2X built a different system that requires different modifications, and/or is there some other way to send a string or a reference to a room from one extension to another?
Thanks
Hamed