Skip to content

Commit 4dcc3ad

Browse files
author
magiclu550
committed
[commit] #1061 some comments
1 parent cbe172c commit 4dcc3ad

22 files changed

Lines changed: 204 additions & 6 deletions

JPLS/src/main/java/cn/jsmod2/DefaultServer.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright Jsmod2 China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311
import cn.jsmod2.api.event.NativeJoinListener;
@@ -152,7 +160,10 @@ public void registerTemplates(List<RegisterTemplate> registers,Server server) {
152160
registers.add(new Register());
153161
}
154162

155-
163+
/**
164+
* 这里重写了close方法,如果存在rpc模式,那么就会关闭rpc模式,目的是防止发生僵尸
165+
* 进程,导致程序没有完全的关闭
166+
*/
156167
@Override
157168
public void close() {
158169
if(ServerStarter.getInstance().getWebServer()!=null)

JPLS/src/main/java/cn/jsmod2/JavaMultiModStarterAdmin.java

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,43 @@
1212

1313

1414
/**
15-
* Jsmod2的主启动类,实例化了ServerStarter对象,并对于Windows的
16-
* ansi字符做了兼容支持
15+
* <P>JSmod2的主启动类,实例化了ServerStarter对象,并对于Windows的
16+
* ansi字符做了兼容支持(对于非rpc状态下)
17+
* <P>JSmod2-Core是JSmod2的体系全称,事实上JSmod2-Core分为JPLS(Java Plugin
18+
* Loading System)和JSmod2(Java Server Mod),JPLS为插件的驱动器,JSmod2则是
19+
* 插件的api,完整的可执行JSmod2称作JSmod2-Core,包含对外api和驱动部分,同时JSmod2-Core
20+
* 也可以分为Core和JSmod2-System,Core为封装好的框架(JSmod2开发组将共性封装到了cn.jsmod2.core包里)
21+
* JSmod2-System则是基于该框架实现的功能部分,事实上Core已经实现了大部分功能,System只是结合这些功能,定义了
22+
* 和游戏兼容的api
23+
* <P>JSmod2的启动配置只需要指定好main类所在的位置(JavaMultiModStarterAdmin)即可,其他配置文件会在JSmod2
24+
* 第一次启动时生成
25+
* <P>同时建议使用由Python开发的ui启动器和管理工具(start.py)来开启JSmod2(此时开启的为rpc心跳模式),这样更简单
26+
* 高效的管理JSmod2
27+
* <P>JSmod2不要远程和multiAdmin/LocalAdmin进行连接,必须放在同一系统内,否则网络波动的现象导致发生奇怪的问题,
28+
* 这里已经声明了这一点
29+
* <P>如果使得JSmod2生效,必须在MultiAdmin|LocalAdmin的sm_plugins文件夹里装载ProxyHandler.dll,使得JSmod2
30+
* 能够连接和找到游戏服务器,并提供插件的操作
31+
* <P>如果对该项目感兴趣,<a href="https://github.com/jsmod2-java-c/JSmod2-Core">加入我们</a>参与项目的开发
32+
* 或者提供一个star或者fork,感谢您的支持
33+
*
34+
* <P>JSmod2's main startup class, instantiated the ServerStarter object, and for Windows
35+
* Ansi characters do compatible support (for non-rpc state)
36+
* <P>JSmod2-Core is the full name of JSmod2 system. In fact, JSmod2-Core is divided into JPLS (Java Plugin).
37+
* Loading System) and JSmod2 (Java Server Mod), JPLS is the plugin driver, JSmod2 is
38+
* Plugin api, full executable JSmod2 called JSmod2-Core, contains external api and driver parts, and JSmod2-Core
39+
* Can also be divided into Core and JSmod2-System, Core is a packaged framework (JSmod2 development group will be common to the cn.jsmod2.core package)
40+
* JSmod2-System is based on the functional part of the framework implementation. In fact, Core has implemented most of the functions. System just combines these functions and defines
41+
* Game compatible api
42+
* <P>JSmod2 startup configuration only needs to specify the location of the main class (JavaMultiModStarterAdmin), other configuration files will be in JSmod2
43+
* Generated on first boot
44+
* <P>It is also recommended to use ui launcher and management tool (start.py) developed by Python to enable JSmod2 (the rpc heartbeat mode is enabled at this time), which is simpler.
45+
* Efficient management of JSmod2
46+
* <P>JSmod2 should not be connected remotely to multiAdmin/LocalAdmin and must be placed in the same system. Otherwise, network fluctuations may cause strange problems.
47+
* This has been stated here
48+
* <P>If JSmod2 is in effect, ProxyHandler.dll must be loaded in the sm_plugins folder of MultiAdmin|LocalAdmin to make JSmod2
49+
* Ability to connect and find game servers and provide plugin operations
50+
* <P>If you are interested in this project, <a href="https://github.com/jsmod2-java-c/JSmod2-Core">join us</a> to participate in the development of the project.
51+
* Or provide a star or fork, thank you for your support
1752
* @author magiclu550 #(code) jsmod2
1853
*/
1954
public class JavaMultiModStarterAdmin {

JPLS/src/main/java/cn/jsmod2/MethodInvoker.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright Jsmod2 China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311
import java.lang.reflect.Method;

JPLS/src/main/java/cn/jsmod2/RPCHandler.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright JavaMultiModStarterAdmin China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311
import cn.jsmod2.api.player.IPlayer;

JPLS/src/main/java/cn/jsmod2/ResponseValue.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright JavaMultiModStarterAdmin China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311
/**

JPLS/src/main/java/cn/jsmod2/ServerRunner.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright JavaMultiModStarterAdmin China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311

JPLS/src/main/java/cn/jsmod2/ServerStarter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright JavaMultiModStarterAdmin China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210
import cn.jsmod2.core.Application;
311

JPLS/src/main/java/cn/jsmod2/ServerTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright JavaMultiModStarterAdmin China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311
import java.lang.annotation.ElementType;

JPLS/src/main/java/cn/jsmod2/Starter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright JavaMultiModStarterAdmin China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311
import cn.jsmod2.core.Server;

JPLS/src/main/java/cn/jsmod2/UIStarter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Jsmod2 is a java-based scpsl cn.jsmod2.server initiated by jsmod2.cn.
3+
It needs to rely on smod2 and proxy. jsmod2 is an open source
4+
free plugin that is released under the GNU license. Please read
5+
the GNU open source license before using the software. To understand
6+
the appropriateness, if infringement, will be handled in accordance
7+
with the law, @Copyright JavaMultiModStarterAdmin China,more can see <a href="http://jsmod2.cn">that<a>
8+
*/
19
package cn.jsmod2;
210

311
import javafx.fxml.FXMLLoader;

0 commit comments

Comments
 (0)