Skip to content

Commit b13954d

Browse files
author
magiclu550
committed
[JSMOD@2_469_COMMIT] China No1
1 parent edc46d5 commit b13954d

7 files changed

Lines changed: 103 additions & 6 deletions

File tree

JSMod2Core/src/test/java/net/noyark/Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class Test {
99

1010

1111
public static void main(String[] args) {
12-
System.out.println(JSON.parseArray("[{\"x\":1.0,\"y\":2.1,\"z\":3.2},{\"x\":1.0,\"y\":2.1,\"z\":3.3}]", Vector.class));
12+
Integer i = 1;
13+
System.out.println(i.toString());
1314
}
1415
}
Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
package cn.jsmod2.network.protocol.map.map;
22

3-
public class AnnounceScpKillPacket {
3+
import cn.jsmod2.api.player.Player;
4+
import cn.jsmod2.core.protocol.SetPacket;
5+
6+
public class AnnounceScpKillPacket extends SetPacket {
7+
8+
public static final int ID = 146;
9+
10+
public String scpNumber;
11+
12+
public Player killer;
13+
14+
public AnnounceScpKillPacket(int id) {
15+
super(id);
16+
}
17+
18+
@Override
19+
public void send() {
20+
requester.with("scpNumber",scpNumber).with("killer",killer).to();
21+
}
422
}
Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
package cn.jsmod2.network.protocol.map.map;
22

3-
public class BroadCastPacket {
3+
import cn.jsmod2.core.protocol.SetPacket;
4+
5+
public class BroadCastPacket extends SetPacket {
6+
7+
public int duration;
8+
public String message;
9+
public boolean isMonoSpaced;
10+
11+
public static final int ID = 147;
12+
13+
public BroadCastPacket() {
14+
super(ID);
15+
}
16+
17+
@Override
18+
public void send() {
19+
requester.with("duration",duration).with("message",message).with("isMonoSpaced",isMonoSpaced).to();
20+
}
421
}
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
package cn.jsmod2.network.protocol.map.map;
22

3-
public class ClearBroadcastsPacket {
3+
import cn.jsmod2.core.protocol.SetPacket;
4+
5+
public class ClearBroadcastsPacket extends SetPacket {
6+
7+
public static final int ID = 148;
8+
9+
public ClearBroadcastsPacket() {
10+
super(ID);
11+
}
12+
13+
@Override
14+
public void send() {
15+
requester.with(DO,"clearBroadcasts").to();
16+
}
417
}
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
package cn.jsmod2.network.protocol.map.map;
22

3-
public class DetonateWarheadMapPacket {
3+
import cn.jsmod2.core.protocol.SetPacket;
4+
5+
public class DetonateWarheadMapPacket extends SetPacket {
6+
7+
public static final int ID = 149;
8+
9+
10+
public DetonateWarheadMapPacket() {
11+
super(ID);
12+
}
13+
14+
@Override
15+
public void send() {
16+
requester.with(DO,"detonateWarhead").to();
17+
}
418
}
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
package cn.jsmod2.network.protocol.map.map;
22

3-
public class FemurBreakerMapPacket {
3+
import cn.jsmod2.core.protocol.SetPacket;
4+
5+
public class FemurBreakerMapPacket extends SetPacket {
6+
7+
8+
public static final int ID = 150;
9+
10+
public boolean enable;
11+
12+
public FemurBreakerMapPacket(){
13+
super(ID);
14+
}
15+
16+
@Override
17+
public void send() {
18+
requester.with("enable",enable).to();
19+
}
420
}

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
# JSMod2 ![LICENSE](https://img.shields.io/badge/license-GPL-blue.svg)
44
###### Smod2 Java Edition [based on Smod2]
55

6+
> 严正声明: Strict statement
7+
8+
我们维护中华人民共和国主权,台湾,香港,澳门是中华人民共和国的一部分,
9+
反对港独暴动和台独分子,坚决打击分裂分子 禁止在issues区,discord区,pr区,发布反国家和平言论,
10+
禁止项目贡献过程中,commit信息带有分裂,煽动分裂的字样 如果发现,将以法律或者道德上驱逐
11+
12+
We uphold the sovereignty of the People’s Republic of China. Taiwan, Hong Kong
13+
and Macao are part of the People’s Republic of China. They oppose the riots of the
14+
Hong Kong independence and the Taiwan independence elements. They are resolutely cracking
15+
down on the separatists’ ban on issuing anti-state peace speeches and prohibiting projects in the issues,
16+
discord and pr districts. In the process of contribution, the commit information has a split, and the words
17+
that incite splitting will be expelled legally or morally if found.
18+
19+
私たちは中華人民共和国の主権を支持します。台湾、香港、マカオは中華人民共和国の一部です。彼らは香港の独立と台湾の独立の要素の暴動に反対します。 コントリビューションの過程で、コミット情報には分割があり、分割を引き起こす単語は、見つかった場合は法的にまたは道徳的に追放されます。
20+
21+
우리는 중화 인민 공화국의 주권을지지합니다 대만, 홍콩, 마카오는 중화 인민 공화국의 일부이며 홍콩의 독립과 대만 독립 요소의 폭동에 반대하며, 분리 주의자들의 반 국가 평화 발언 금지, 반 국가 평화 발언 금지, 지구 문제에 대한 프로젝트 금지, 지구 문제에 대한 분쟁을 단호히 단속하고 있습니다. 기여 과정에서 커밋 정보는 분리되어 있으며 분리를 촉구하는 단어는 발견되면 합법적 또는 도덕적으로 추방됩니다.
22+
23+
624
> Copyright: JSmod2 LICENSE
725
```java
826
/*

0 commit comments

Comments
 (0)