rubyfox-server 2.17.3.1 → 2.19.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubyfox/server/data/config/admin/descriptors/config_room.txt +10 -1
- data/lib/rubyfox/server/data/config/admin/descriptors/config_server.txt +90 -20
- data/lib/rubyfox/server/data/config/admin/descriptors/config_zone.txt +9 -0
- data/lib/rubyfox/server/data/config/admin/descriptors/runtime_room.txt +11 -0
- data/lib/rubyfox/server/data/config/admin/descriptors/runtime_user.txt +3 -3
- data/lib/rubyfox/server/data/config/core.xml +4 -4
- data/lib/rubyfox/server/data/config/default.words.txt +11 -0
- data/lib/rubyfox/server/data/config/log4j.properties +1 -2
- data/lib/rubyfox/server/data/config/server.xml +1 -1
- data/lib/rubyfox/server/data/data/GeoLite2-Country.mmdb +0 -0
- data/lib/rubyfox/server/data/data/bannedusers/users.bin +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/bootstrap.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/catalina-tasks.xml +39 -39
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/catalina.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/ciphers.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/commons-daemon-native.tar.gz +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/commons-daemon.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/configtest.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/daemon.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/digest.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/makebase.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/setclasspath.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/shutdown.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/startup.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/tomcat-juli.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/tomcat-native.tar.gz +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/tool-wrapper.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/bin/version.sh +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/Catalina/localhost/rewrite.config +1 -1
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/catalina.policy +263 -264
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/catalina.properties +209 -207
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/context.xml +31 -31
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/jaspic-providers.xml +23 -23
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/jaspic-providers.xsd +52 -52
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/keystore.jks +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/server.xml +177 -161
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/tomcat-users.xml +18 -7
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/tomcat-users.xsd +59 -59
- data/lib/rubyfox/server/data/lib/apache-tomcat/conf/web.xml +4740 -4737
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/annotations-api.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-ant.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-ha.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-ssi.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-storeconfig.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina-tribes.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/catalina.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/el-api.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jasper-el.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jasper.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jaspic-api.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/jsp-api.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/servlet-api.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/sfs2x-ws-helper.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-api.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-coyote.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-dbcp.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-cs.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-de.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-es.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-fr.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-ja.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-ko.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-pt-BR.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-ru.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-i18n-zh-CN.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-jdbc.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-jni.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-util-scan.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-util.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/tomcat-websocket.jar +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/lib/websocket-api.jar +0 -0
- data/lib/rubyfox/server/data/lib/javax.activation-1.2.0.jar +0 -0
- data/lib/rubyfox/server/data/lib/javax.mail.jar +0 -0
- data/lib/rubyfox/server/data/lib/js/JSApi.js +2 -1
- data/lib/rubyfox/server/data/lib/js/LibApi.js +181 -48
- data/lib/rubyfox/server/data/lib/sfs2x-admin.jar +0 -0
- data/lib/rubyfox/server/data/lib/sfs2x-cluster.jar +0 -0
- data/lib/rubyfox/server/data/lib/sfs2x-core.jar +0 -0
- data/lib/rubyfox/server/data/lib/sfs2x.jar +0 -0
- data/lib/rubyfox/server/data/sfs2x-service +26 -30
- data/lib/rubyfox/server/data/www/BlueBox.war +0 -0
- data/lib/rubyfox/server/data/www/HelloServlet/WEB-INF/web.xml +1 -3
- data/lib/rubyfox/server/data/www/ROOT/_css_/default.css +14 -6
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/css/style.css +44 -2
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/application.bundle.js +98 -61
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/endors~mod-0~mod-1~mod-11~mod-12~mod-17~mod-6~mod-7~mod-8~mod-9.bundle.js +17357 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-0.bundle.js +4 -4
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-1.bundle.js +3 -3
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-10.bundle.js +101 -66
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-11.bundle.js +544 -8
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-12.bundle.js +915 -1480
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-12~module-15~module-16~module-4.bundle.js +2665 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-13.bundle.js +606 -3093
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-13~module-16~module-17~module-4.bundle.js +2665 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-14.bundle.js +764 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-15.bundle.js +71 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-16.bundle.js +1787 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-17.bundle.js +3383 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-4.bundle.js +121 -1009
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-5.bundle.js +1214 -1744
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-6.bundle.js +398 -666
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-7.bundle.js +717 -192
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-8.bundle.js +2117 -665
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-9.bundle.js +613 -690
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/vendors~mod-0~mod-1~mod-10~mod-11~mod-16~mod-5~mod-6~mod-7~mod-8.bundle.js +17357 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/vendors~mod-0~mod-1~mod-11~mod-12~mod-17~mod-5~mod-6~mod-7~mod-8~mod-9.bundle.js +17357 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/{vendors~module-0~module-1~module-13~module-4~module-5~module-7~module-8.bundle.js → vendors~mod-0~mod-1~mod-11~mod-12~mod-17~mod-5~mod-7~mod-8~mod-9.bundle.js} +2 -2
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/vendors~module-12.bundle.js +807 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/vendors~module-13.bundle.js +807 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/modules/cluster-configurator.html +32 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/modules/cluster-monitor.html +185 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/modules/cluster-updater.html +47 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/modules/extension-deployer.html +84 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/modules/zone-monitor.html +15 -8
- data/lib/rubyfox/server/data/www/ROOT/index.html +13 -23
- data/lib/rubyfox/server/data/www/host-manager/META-INF/context.xml +2 -2
- data/lib/rubyfox/server/data/www/host-manager/WEB-INF/jsp/404.jsp +2 -2
- data/lib/rubyfox/server/data/www/host-manager/{manager.xml → WEB-INF/manager.xml} +5 -1
- data/lib/rubyfox/server/data/www/host-manager/WEB-INF/web.xml +17 -0
- data/lib/rubyfox/server/data/www/host-manager/css/manager.css +141 -0
- data/lib/rubyfox/server/data/www/host-manager/images/tomcat.svg +967 -0
- data/lib/rubyfox/server/data/www/manager/META-INF/context.xml +2 -0
- data/lib/rubyfox/server/data/www/manager/WEB-INF/jsp/connectorCerts.jsp +1 -1
- data/lib/rubyfox/server/data/www/manager/WEB-INF/jsp/connectorCiphers.jsp +1 -1
- data/lib/rubyfox/server/data/www/manager/WEB-INF/jsp/connectorTrustedCerts.jsp +1 -1
- data/lib/rubyfox/server/data/www/manager/WEB-INF/jsp/sessionDetail.jsp +3 -3
- data/lib/rubyfox/server/data/www/manager/WEB-INF/jsp/sessionsList.jsp +1 -1
- data/lib/rubyfox/server/data/www/manager/WEB-INF/web.xml +17 -0
- data/lib/rubyfox/server/data/www/manager/css/manager.css +141 -0
- data/lib/rubyfox/server/data/www/manager/images/tomcat.svg +967 -0
- data/lib/rubyfox/server/data/www/manager/xform.xsl +74 -59
- data/lib/rubyfox/server/version.rb +1 -1
- metadata +30 -31
- data/lib/rubyfox/server/data/config/admin/icons/Analytics.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/BanManager.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/BlueBoxMonitor.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/Console.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/Dashboard.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/ExtensionManager.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/LicenseManager.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/LogViewer.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/ServerConfigurator.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/ServletManager.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/ZoneConfigurator.png +0 -0
- data/lib/rubyfox/server/data/config/admin/icons/ZoneMonitor.png +0 -0
- data/lib/rubyfox/server/data/lib/BlueBox.war +0 -0
- data/lib/rubyfox/server/data/lib/apache-tomcat/LICENSE +0 -1061
- data/lib/rubyfox/server/data/lib/apache-tomcat/NOTICE +0 -68
- data/lib/rubyfox/server/data/lib/apache-tomcat/README.md +0 -81
- data/lib/rubyfox/server/data/lib/apache-tomcat/RELEASE-NOTES +0 -174
- data/lib/rubyfox/server/data/lib/imap.jar +0 -0
- data/lib/rubyfox/server/data/lib/mailapi.jar +0 -0
- data/lib/rubyfox/server/data/lib/pop3.jar +0 -0
- data/lib/rubyfox/server/data/lib/smtp.jar +0 -0
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/module-12~module-13~module-9.bundle.js +0 -2634
- data/lib/rubyfox/server/data/www/ROOT/admin/assets/js/core/modules/vendors~module-9.bundle.js +0 -807
- data/lib/rubyfox/server/data/www/host-manager/images/tomcat.gif +0 -0
- data/lib/rubyfox/server/data/www/manager/images/tomcat.gif +0 -0
- /data/lib/rubyfox/server/data/data/buddylists/{BasicExamples/.keep → .keep} +0 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -64,7 +64,8 @@ load($$API_LIB_PATH + 'LibUtil.js');
|
|
64
64
|
* <h4>Notes</h4>
|
65
65
|
* <ul>
|
66
66
|
* <li>For members of the <em>SFSObject</em> class, please [refer to its Javadoc]{@link http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/entities/data/SFSObject.html}.</li>
|
67
|
-
* <li>
|
67
|
+
* <li>SFSObject key strings are limited to ASCII characters.</li>
|
68
|
+
* <li>SFSObject string values support UTF-8 encoding.</li>
|
68
69
|
* <li>In JavaScript, long integer numbers are limited to [Number.MAX_SAFE_INTEGER]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER} (positive and negative, inclusive).
|
69
70
|
* This is inconsistent with the max and min Long values available in Java, which are down to <code>-2^63</code> and up to <code>(2^63)-1</code>.</li>
|
70
71
|
* </ul>
|
@@ -619,25 +619,6 @@ SFSApi.prototype.checkSecurePassword = function(session, originalPass, encrypted
|
|
619
619
|
return this._javaApi.checkSecurePassword(session, originalPass, encryptedPass);
|
620
620
|
}
|
621
621
|
|
622
|
-
/*
|
623
|
-
* Logs a client into a Zone, turning its <em>Session</em> object into a <em>SFSUser</em> object.
|
624
|
-
*
|
625
|
-
* @param {Session} session The client's <img src="java-icon-small.png"></img> [Session]{@link http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/bitswarm/sessions/Session.html} object, usually provided by the <img src="java-icon-small.png"></img> [SFSEventType.USER_LOGIN]{@link http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/core/SFSEventType.html#USER_LOGIN} event.
|
626
|
-
* @param {string} name The user name.
|
627
|
-
* @param {string} pass The user password.
|
628
|
-
* @param {string} zoneName The name of the Zone to join.
|
629
|
-
* @param {SFSObject} params A <em>SFSObject</em> containing the custom parameters to be sent back to the client, attached to the client-side <em>LOGIN</em> event.
|
630
|
-
* @param {boolean} forceLogout If a user with the same name is already logged in the system and <code>true</code> is passed, that user will be disconnected before logging in the new user.
|
631
|
-
*
|
632
|
-
* @return {SFSUser} The <img src="java-icon-small.png"></img> [SFSUser]{@link http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/entities/SFSUser.html} object representing the logged-in user.
|
633
|
-
*/
|
634
|
-
/*
|
635
|
-
SFSApi.prototype.login = function(session, name, pass, zoneName, params, forceLogout)
|
636
|
-
{
|
637
|
-
return this._javaApi.login(session, name, pass, zoneName, params, forceLogout)
|
638
|
-
}
|
639
|
-
*/
|
640
|
-
|
641
622
|
/**
|
642
623
|
* Logs a user out of the current Zone.
|
643
624
|
*
|
@@ -800,7 +781,16 @@ SFSApi.prototype.disconnectSession = function(session)
|
|
800
781
|
*/
|
801
782
|
SFSApi.prototype.createRoom = function(zone, settings, owner, joinIt, roomToLeave, fireClientEvent, fireServerEvent)
|
802
783
|
{
|
803
|
-
return this._javaApi.createRoom
|
784
|
+
return this._javaApi.createRoom
|
785
|
+
(
|
786
|
+
zone,
|
787
|
+
settings,
|
788
|
+
(owner === undefined ? null : owner),
|
789
|
+
(joinIt === undefined ? false : joinIt),
|
790
|
+
(roomToLeave === undefined ? null : roomToLeave),
|
791
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
792
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
793
|
+
);
|
804
794
|
}
|
805
795
|
|
806
796
|
/**
|
@@ -906,11 +896,16 @@ SFSApi.prototype.getUserBySession = function(session)
|
|
906
896
|
*/
|
907
897
|
SFSApi.prototype.joinRoom = function(user, roomToJoin, password, asSpectator, roomToLeave, fireClientEvent, fireServerEvent)
|
908
898
|
{
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
899
|
+
this._javaApi.joinRoom
|
900
|
+
(
|
901
|
+
user,
|
902
|
+
roomToJoin,
|
903
|
+
(password === undefined ? null : password),
|
904
|
+
(asSpectator === undefined ? false : asSpectator),
|
905
|
+
(roomToLeave === undefined ? null : roomToLeave),
|
906
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
907
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
908
|
+
);
|
914
909
|
}
|
915
910
|
|
916
911
|
/**
|
@@ -923,7 +918,13 @@ SFSApi.prototype.joinRoom = function(user, roomToJoin, password, asSpectator, ro
|
|
923
918
|
*/
|
924
919
|
SFSApi.prototype.leaveRoom = function(user, room, fireClientEvent, fireServerEvent)
|
925
920
|
{
|
926
|
-
this._javaApi.leaveRoom
|
921
|
+
this._javaApi.leaveRoom
|
922
|
+
(
|
923
|
+
user,
|
924
|
+
room,
|
925
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
926
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
927
|
+
);
|
927
928
|
}
|
928
929
|
|
929
930
|
/**
|
@@ -935,7 +936,12 @@ SFSApi.prototype.leaveRoom = function(user, room, fireClientEvent, fireServerEve
|
|
935
936
|
*/
|
936
937
|
SFSApi.prototype.removeRoom = function(room, fireClientEvent, fireServerEvent)
|
937
938
|
{
|
938
|
-
this._javaApi.removeRoom
|
939
|
+
this._javaApi.removeRoom
|
940
|
+
(
|
941
|
+
room,
|
942
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
943
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
944
|
+
);
|
939
945
|
}
|
940
946
|
|
941
947
|
/**
|
@@ -950,7 +956,13 @@ SFSApi.prototype.removeRoom = function(room, fireClientEvent, fireServerEvent)
|
|
950
956
|
*/
|
951
957
|
SFSApi.prototype.sendPublicMessage = function(targetRoom, sender, message, params)
|
952
958
|
{
|
953
|
-
this._javaApi.sendPublicMessage
|
959
|
+
this._javaApi.sendPublicMessage
|
960
|
+
(
|
961
|
+
targetRoom,
|
962
|
+
sender,
|
963
|
+
message,
|
964
|
+
(params === undefined ? null : params)
|
965
|
+
);
|
954
966
|
}
|
955
967
|
|
956
968
|
/**
|
@@ -965,7 +977,13 @@ SFSApi.prototype.sendPublicMessage = function(targetRoom, sender, message, param
|
|
965
977
|
*/
|
966
978
|
SFSApi.prototype.sendPrivateMessage = function(sender, recipient, message, params)
|
967
979
|
{
|
968
|
-
this._javaApi.sendPrivateMessage
|
980
|
+
this._javaApi.sendPrivateMessage
|
981
|
+
(
|
982
|
+
sender,
|
983
|
+
recipient,
|
984
|
+
message,
|
985
|
+
(params === undefined ? null : params)
|
986
|
+
);
|
969
987
|
}
|
970
988
|
|
971
989
|
/**
|
@@ -1023,7 +1041,13 @@ SFSApi.prototype.sendObjectMessage = function(targetRoom, sender, message, recip
|
|
1023
1041
|
if (recipients instanceof Array)
|
1024
1042
|
recipients = $$Util.toList(recipients);
|
1025
1043
|
|
1026
|
-
this._javaApi.sendObjectMessage
|
1044
|
+
this._javaApi.sendObjectMessage
|
1045
|
+
(
|
1046
|
+
targetRoom,
|
1047
|
+
sender,
|
1048
|
+
message,
|
1049
|
+
(recipients === undefined ? null : recipients)
|
1050
|
+
);
|
1027
1051
|
}
|
1028
1052
|
|
1029
1053
|
/**
|
@@ -1068,7 +1092,15 @@ SFSApi.prototype.setRoomVariables = function(user, targetRoom, variables, fireCl
|
|
1068
1092
|
if (variables instanceof Array)
|
1069
1093
|
variables = $$Util.toList(variables);
|
1070
1094
|
|
1071
|
-
this._javaApi.setRoomVariables
|
1095
|
+
this._javaApi.setRoomVariables
|
1096
|
+
(
|
1097
|
+
user,
|
1098
|
+
targetRoom,
|
1099
|
+
variables,
|
1100
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1101
|
+
(fireServerEvent === undefined ? false : fireServerEvent),
|
1102
|
+
(overrideOwnership === undefined ? false : overrideOwnership)
|
1103
|
+
);
|
1072
1104
|
}
|
1073
1105
|
|
1074
1106
|
/**
|
@@ -1115,7 +1147,13 @@ SFSApi.prototype.setUserVariables = function(owner, variables, fireClientEvent,
|
|
1115
1147
|
if (variables instanceof Array)
|
1116
1148
|
variables = $$Util.toList(variables);
|
1117
1149
|
|
1118
|
-
this._javaApi.setUserVariables
|
1150
|
+
this._javaApi.setUserVariables
|
1151
|
+
(
|
1152
|
+
owner,
|
1153
|
+
variables,
|
1154
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1155
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1156
|
+
);
|
1119
1157
|
}
|
1120
1158
|
|
1121
1159
|
/**
|
@@ -1203,7 +1241,13 @@ SFSApi.prototype.unsubscribeRoomGroup = function(user, groupId)
|
|
1203
1241
|
*/
|
1204
1242
|
SFSApi.prototype.spectatorToPlayer = function(user, targetRoom, fireClientEvent, fireServerEvent)
|
1205
1243
|
{
|
1206
|
-
this._javaApi.spectatorToPlayer
|
1244
|
+
this._javaApi.spectatorToPlayer
|
1245
|
+
(
|
1246
|
+
user,
|
1247
|
+
targetRoom,
|
1248
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1249
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1250
|
+
);
|
1207
1251
|
}
|
1208
1252
|
|
1209
1253
|
/**
|
@@ -1218,7 +1262,13 @@ SFSApi.prototype.spectatorToPlayer = function(user, targetRoom, fireClientEvent,
|
|
1218
1262
|
*/
|
1219
1263
|
SFSApi.prototype.playerToSpectator = function(user, targetRoom, fireClientEvent, fireServerEvent)
|
1220
1264
|
{
|
1221
|
-
this._javaApi.playerToSpectator
|
1265
|
+
this._javaApi.playerToSpectator
|
1266
|
+
(
|
1267
|
+
user,
|
1268
|
+
targetRoom,
|
1269
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1270
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1271
|
+
);
|
1222
1272
|
}
|
1223
1273
|
|
1224
1274
|
//==============================================================================
|
@@ -1251,7 +1301,7 @@ BuddyApi = function()
|
|
1251
1301
|
*
|
1252
1302
|
* <p>This causes saved data (the list of buddies and their persistent Buddy Variables) to be loaded from the Buddy List storage.</p>
|
1253
1303
|
*
|
1254
|
-
* @param {SFSUser} user
|
1304
|
+
* @param {SFSUser} user The <img src="java-icon-small.png"></img> [SFSUser]{@link http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/entities/SFSUser.html} object representing the user whose Buddy List should be loaded.
|
1255
1305
|
* @param {boolean} [fireServerEvent=false] If <code>true</code>, a server-side event of type <img src="java-icon-small.png"></img> [SFSEventType.BUDDY_LIST_INIT]{@link http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/core/SFSEventType.html#BUDDY_LIST_INIT} will be fired to notify the Buddy List initialization success.
|
1256
1306
|
*
|
1257
1307
|
* @return {SFSBuddyList} A <img src="java-icon-small.png"></img> [SFSBuddyList]{@link http://docs2x.smartfoxserver.com/api-docs/javadoc/server/com/smartfoxserver/v2/buddylist/SFSBuddyList.html} class instance representing the usere's Buddy List.
|
@@ -1260,7 +1310,11 @@ BuddyApi = function()
|
|
1260
1310
|
*/
|
1261
1311
|
BuddyApi.prototype.initBuddyList = function(user, fireServerEvent)
|
1262
1312
|
{
|
1263
|
-
return this._javaApi.initBuddyList
|
1313
|
+
return this._javaApi.initBuddyList
|
1314
|
+
(
|
1315
|
+
user,
|
1316
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1317
|
+
);
|
1264
1318
|
}
|
1265
1319
|
|
1266
1320
|
/**
|
@@ -1274,7 +1328,12 @@ BuddyApi.prototype.initBuddyList = function(user, fireServerEvent)
|
|
1274
1328
|
*/
|
1275
1329
|
BuddyApi.prototype.goOnline = function(user, online, fireServerEvent)
|
1276
1330
|
{
|
1277
|
-
this._javaApi.goOnline
|
1331
|
+
this._javaApi.goOnline
|
1332
|
+
(
|
1333
|
+
user,
|
1334
|
+
online,
|
1335
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1336
|
+
);
|
1278
1337
|
}
|
1279
1338
|
|
1280
1339
|
/**
|
@@ -1290,7 +1349,14 @@ BuddyApi.prototype.goOnline = function(user, online, fireServerEvent)
|
|
1290
1349
|
*/
|
1291
1350
|
BuddyApi.prototype.addBuddy = function(owner, buddyName, isTemp, fireClientEvent, fireServerEvent)
|
1292
1351
|
{
|
1293
|
-
this._javaApi.addBuddy
|
1352
|
+
this._javaApi.addBuddy
|
1353
|
+
(
|
1354
|
+
owner,
|
1355
|
+
buddyName,
|
1356
|
+
isTemp,
|
1357
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1358
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1359
|
+
);
|
1294
1360
|
}
|
1295
1361
|
|
1296
1362
|
/**
|
@@ -1311,7 +1377,13 @@ BuddyApi.prototype.setBuddyVariables = function(owner, variables, fireClientEven
|
|
1311
1377
|
if (variables instanceof Array)
|
1312
1378
|
variables = $$Util.toList(variables);
|
1313
1379
|
|
1314
|
-
this._javaApi.setBuddyVariables
|
1380
|
+
this._javaApi.setBuddyVariables
|
1381
|
+
(
|
1382
|
+
owner,
|
1383
|
+
variables,
|
1384
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1385
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1386
|
+
);
|
1315
1387
|
}
|
1316
1388
|
|
1317
1389
|
/**
|
@@ -1324,7 +1396,13 @@ BuddyApi.prototype.setBuddyVariables = function(owner, variables, fireClientEven
|
|
1324
1396
|
*/
|
1325
1397
|
BuddyApi.prototype.removeBuddy = function(owner, buddyName, fireClientEvent, fireServerEvent)
|
1326
1398
|
{
|
1327
|
-
this._javaApi.removeBuddy
|
1399
|
+
this._javaApi.removeBuddy
|
1400
|
+
(
|
1401
|
+
owner,
|
1402
|
+
buddyName,
|
1403
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1404
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1405
|
+
);
|
1328
1406
|
}
|
1329
1407
|
|
1330
1408
|
/**
|
@@ -1340,7 +1418,14 @@ BuddyApi.prototype.removeBuddy = function(owner, buddyName, fireClientEvent, fir
|
|
1340
1418
|
*/
|
1341
1419
|
BuddyApi.prototype.blockBuddy = function(owner, buddyName, isBlocked, fireClientEvent, fireServerEvent)
|
1342
1420
|
{
|
1343
|
-
this._javaApi.blockBuddy
|
1421
|
+
this._javaApi.blockBuddy
|
1422
|
+
(
|
1423
|
+
owner,
|
1424
|
+
buddyName,
|
1425
|
+
isBlocked,
|
1426
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1427
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1428
|
+
);
|
1344
1429
|
}
|
1345
1430
|
|
1346
1431
|
/**
|
@@ -1431,7 +1516,14 @@ GameApi = function()
|
|
1431
1516
|
*/
|
1432
1517
|
GameApi.prototype.createGame = function(zone, settings, owner, fireClientEvent, fireServerEvent)
|
1433
1518
|
{
|
1434
|
-
return this._javaApi.createGame
|
1519
|
+
return this._javaApi.createGame
|
1520
|
+
(
|
1521
|
+
zone,
|
1522
|
+
settings,
|
1523
|
+
(owner === undefined ? null : owner),
|
1524
|
+
(fireClientEvent === undefined ? false : fireClientEvent),
|
1525
|
+
(fireServerEvent === undefined ? false : fireServerEvent)
|
1526
|
+
);
|
1435
1527
|
}
|
1436
1528
|
|
1437
1529
|
/**
|
@@ -1487,7 +1579,14 @@ GameApi.prototype.sendInvitation = function(inviter, invitees, expirySeconds, in
|
|
1487
1579
|
throw new java.lang.IllegalArgumentException("Callback handler must implement these three methods: onAccepted, onRefused, onExpired");
|
1488
1580
|
|
1489
1581
|
var handler = Java.extend(InvitationCallback, invCallBackHandler);
|
1490
|
-
this._javaApi.sendInvitation
|
1582
|
+
this._javaApi.sendInvitation
|
1583
|
+
(
|
1584
|
+
inviter,
|
1585
|
+
invitees,
|
1586
|
+
expirySeconds,
|
1587
|
+
new handler(),
|
1588
|
+
(params === undefined ? null : params)
|
1589
|
+
);
|
1491
1590
|
}
|
1492
1591
|
|
1493
1592
|
/**
|
@@ -1546,7 +1645,14 @@ GameApi.prototype.sendInvitation = function(inviter, invitees, expirySeconds, in
|
|
1546
1645
|
*/
|
1547
1646
|
GameApi.prototype.replyToInvitation = function(invitedUser, invitationId, reply, params, fireClientEvent)
|
1548
1647
|
{
|
1549
|
-
this._javaApi.replyToInvitation
|
1648
|
+
this._javaApi.replyToInvitation
|
1649
|
+
(
|
1650
|
+
invitedUser,
|
1651
|
+
invitationId,
|
1652
|
+
reply,
|
1653
|
+
(params === undefined ? null : params),
|
1654
|
+
(fireClientEvent === undefined ? false : fireClientEvent)
|
1655
|
+
);
|
1550
1656
|
}
|
1551
1657
|
|
1552
1658
|
/**
|
@@ -1567,7 +1673,16 @@ GameApi.prototype.sendJoinRoomInvitation = function(target, inviter, invitees, e
|
|
1567
1673
|
if (invitees instanceof Array)
|
1568
1674
|
invitees = $$Util.toList(invitees);
|
1569
1675
|
|
1570
|
-
this._javaApi.sendJoinRoomInvitation
|
1676
|
+
this._javaApi.sendJoinRoomInvitation
|
1677
|
+
(
|
1678
|
+
target,
|
1679
|
+
inviter,
|
1680
|
+
invitees,
|
1681
|
+
expirySeconds,
|
1682
|
+
(asSpect === undefined ? false : asSpect),
|
1683
|
+
(leaveLastJoinedRoom === undefined ? false : leaveLastJoinedRoom),
|
1684
|
+
(params === undefined ? null : params)
|
1685
|
+
);
|
1571
1686
|
}
|
1572
1687
|
|
1573
1688
|
//==============================================================================
|
@@ -1616,7 +1731,13 @@ MMOApi = function()
|
|
1616
1731
|
*/
|
1617
1732
|
MMOApi.prototype.sendObjectMessage = function(targetRoom, sender, message, aoi)
|
1618
1733
|
{
|
1619
|
-
this._javaApi.sendObjectMessage
|
1734
|
+
this._javaApi.sendObjectMessage
|
1735
|
+
(
|
1736
|
+
targetRoom,
|
1737
|
+
sender,
|
1738
|
+
message,
|
1739
|
+
(aoi === undefined ? null : aoi)
|
1740
|
+
);
|
1620
1741
|
}
|
1621
1742
|
|
1622
1743
|
/**
|
@@ -1634,7 +1755,14 @@ MMOApi.prototype.sendObjectMessage = function(targetRoom, sender, message, aoi)
|
|
1634
1755
|
*/
|
1635
1756
|
MMOApi.prototype.sendPublicMessage = function(targetRoom, sender, message, params, aoi)
|
1636
1757
|
{
|
1637
|
-
this._javaApi.sendPublicMessage
|
1758
|
+
this._javaApi.sendPublicMessage
|
1759
|
+
(
|
1760
|
+
targetRoom,
|
1761
|
+
sender,
|
1762
|
+
message,
|
1763
|
+
(params === undefined ? null : params),
|
1764
|
+
(aoi === undefined ? null : aoi)
|
1765
|
+
);
|
1638
1766
|
}
|
1639
1767
|
|
1640
1768
|
/**
|
@@ -1688,7 +1816,12 @@ MMOApi.prototype.setMMOItemVariables = function(item, variables, fireClientEvent
|
|
1688
1816
|
if (variables instanceof Array)
|
1689
1817
|
variables = $$Util.toList(variables);
|
1690
1818
|
|
1691
|
-
this._javaApi.setMMOItemVariables
|
1819
|
+
this._javaApi.setMMOItemVariables
|
1820
|
+
(
|
1821
|
+
item,
|
1822
|
+
variables,
|
1823
|
+
(fireClientEvent === undefined ? false : fireClientEvent)
|
1824
|
+
);
|
1692
1825
|
}
|
1693
1826
|
|
1694
1827
|
//--- MMOApi helper object -----------------------------------------------------
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -91,8 +91,8 @@ create_db_entry() {
|
|
91
91
|
db_new_file=${db_file}_new
|
92
92
|
if [ -f "$db_file" ]; then
|
93
93
|
awk '$2 != "'"$test_dir"'" {print $0}' $db_file > $db_new_file
|
94
|
-
|
95
|
-
|
94
|
+
cp "$db_new_file" "$db_file"
|
95
|
+
rm "$db_new_file" 2> /dev/null
|
96
96
|
fi
|
97
97
|
dir_escaped=`echo "$test_dir" | sed -e 's/ /\\\\ /g'`
|
98
98
|
echo "JRE_VERSION $dir_escaped $ver_major $ver_minor $ver_micro $ver_patch" >> $db_file
|
@@ -148,17 +148,17 @@ test_jvm() {
|
|
148
148
|
if [ "$ver_major" = "" ]; then
|
149
149
|
return;
|
150
150
|
fi
|
151
|
-
if [ "$ver_major" -lt "
|
151
|
+
if [ "$ver_major" -lt "11" ]; then
|
152
152
|
return;
|
153
|
-
elif [ "$ver_major" -eq "1" ]; then
|
154
|
-
if [ "$ver_minor" -lt "8" ]; then
|
155
|
-
return;
|
156
|
-
fi
|
157
153
|
fi
|
158
154
|
|
159
155
|
if [ "$ver_major" = "" ]; then
|
160
156
|
return;
|
161
157
|
fi
|
158
|
+
if [ "$ver_major" -gt "16" ]; then
|
159
|
+
return;
|
160
|
+
fi
|
161
|
+
|
162
162
|
app_java_home=$test_dir
|
163
163
|
}
|
164
164
|
|
@@ -280,8 +280,8 @@ if [ -f "$app_home/.install4j/pref_jre.cfg" ]; then
|
|
280
280
|
read file_jvm_home < "$app_home/.install4j/pref_jre.cfg"
|
281
281
|
test_jvm "$file_jvm_home"
|
282
282
|
if [ -z "$app_java_home" ] && [ $tested_jvm = "false" ]; then
|
283
|
-
if [ -
|
284
|
-
|
283
|
+
if [ -w "$db_file" ]; then
|
284
|
+
/bin/sh -c ': > "$db_file"' 2> /dev/null
|
285
285
|
fi
|
286
286
|
test_jvm "$file_jvm_home"
|
287
287
|
fi
|
@@ -291,8 +291,8 @@ fi
|
|
291
291
|
if [ -z "$app_java_home" ]; then
|
292
292
|
test_jvm "$app_home/jre"
|
293
293
|
if [ -z "$app_java_home" ] && [ $tested_jvm = "false" ]; then
|
294
|
-
if [ -
|
295
|
-
|
294
|
+
if [ -w "$db_file" ]; then
|
295
|
+
/bin/sh -c ': > "$db_file"' 2> /dev/null
|
296
296
|
fi
|
297
297
|
test_jvm "$app_home/jre"
|
298
298
|
fi
|
@@ -334,7 +334,7 @@ fi
|
|
334
334
|
|
335
335
|
|
336
336
|
if [ -z "$app_java_home" ]; then
|
337
|
-
common_jvm_locations="
|
337
|
+
common_jvm_locations=" /usr/bin/java* /usr/bin/jdk* /usr/bin/jre* /usr/bin/j2*re* /usr/bin/j2sdk* /usr/java* /usr/java*/jre /usr/jdk* /usr/jre* /usr/j2*re* /usr/j2sdk* /usr/java/j2*re* /usr/java/j2sdk* /opt/java* /usr/java/jdk* /usr/java/jre* /usr/lib/java/jre /usr/local/java* /usr/local/jdk* /usr/local/jre* /usr/local/j2*re* /usr/local/j2sdk* /usr/jdk/java* /usr/jdk/jdk* /usr/jdk/jre* /usr/jdk/j2*re* /usr/jdk/j2sdk* /usr/lib/jvm/* /usr/lib/java* /usr/lib/jdk* /usr/lib/jre* /usr/lib/j2*re* /usr/lib/j2sdk* /System/Library/Frameworks/JavaVM.framework/Versions/1.?/Home /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home /Library/Java/JavaVirtualMachines/*.jdk/Contents/Home/jre /Library/Java/JavaVirtualMachines/*.jre/Contents/Home /Library/Java/JavaVirtualMachines/*.jdk/Contents/Home"
|
338
338
|
for current_location in $common_jvm_locations
|
339
339
|
do
|
340
340
|
if [ -z "$app_java_home" ]; then
|
@@ -361,8 +361,8 @@ if [ -f "$app_home/.install4j/inst_jre.cfg" ]; then
|
|
361
361
|
read file_jvm_home < "$app_home/.install4j/inst_jre.cfg"
|
362
362
|
test_jvm "$file_jvm_home"
|
363
363
|
if [ -z "$app_java_home" ] && [ $tested_jvm = "false" ]; then
|
364
|
-
if [ -
|
365
|
-
|
364
|
+
if [ -w "$db_file" ]; then
|
365
|
+
/bin/sh -c ': > "$db_file"' 2> /dev/null
|
366
366
|
fi
|
367
367
|
test_jvm "$file_jvm_home"
|
368
368
|
fi
|
@@ -398,40 +398,36 @@ cd "$app_home"
|
|
398
398
|
app_home=`pwd`
|
399
399
|
bundled_jre_home="$app_home/jre"
|
400
400
|
|
401
|
-
if [ "__i4j_lang_restart" = "$1" ]; then
|
402
|
-
cd "$old_pwd"
|
403
|
-
else
|
404
401
|
cd "$prg_dir"/.
|
405
402
|
|
403
|
+
cache_home="$XDG_CACHE_HOME"
|
404
|
+
if [ "W$cache_home" = "W" ]; then
|
405
|
+
cache_home="$HOME/.cache"
|
406
406
|
fi
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
fi
|
411
|
-
db_home=$HOME
|
412
|
-
db_file_suffix=
|
407
|
+
db_home="$cache_home/install4j"
|
408
|
+
mkdir -p "$db_home" > /dev/null 2>&1
|
409
|
+
db_file="$db_home/jre_version"
|
413
410
|
if [ ! -w "$db_home" ]; then
|
414
411
|
db_home=/tmp
|
415
|
-
|
412
|
+
db_file="$db_home/install4j_jre_version_$USER"
|
416
413
|
fi
|
417
|
-
db_file=$db_home/.install4j$db_file_suffix
|
418
414
|
if [ -d "$db_file" ] || ([ -f "$db_file" ] && [ ! -r "$db_file" ]) || ([ -f "$db_file" ] && [ ! -w "$db_file" ]); then
|
419
|
-
db_file
|
415
|
+
db_file="${db_file}.2"
|
420
416
|
fi
|
421
|
-
if [ ! "__i4j_lang_restart" = "$1" ]; then
|
417
|
+
if [ ! "__i4j_lang_restart" = "$1" ] && [ ! "__i4j_auth_restart" = "$1" ]; then
|
422
418
|
run_unpack200 "$bundled_jre_home"
|
423
419
|
run_unpack200 "$bundled_jre_home/jre"
|
424
420
|
fi
|
425
421
|
search_jre
|
426
422
|
if [ -z "$app_java_home" ]; then
|
427
|
-
if [ -
|
428
|
-
|
423
|
+
if [ -w "$db_file" ]; then
|
424
|
+
/bin/sh -c ': > "$db_file"' 2> /dev/null
|
429
425
|
fi
|
430
426
|
search_jre
|
431
427
|
fi
|
432
428
|
if [ -z "$app_java_home" ]; then
|
433
429
|
echo "No suitable Java Virtual Machine could be found on your system."
|
434
|
-
echo The version of the JVM must be at least
|
430
|
+
echo The version of the JVM must be at least 11 and at most 16.
|
435
431
|
echo Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
|
436
432
|
exit 83
|
437
433
|
fi
|
Binary file
|