File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
JSMod2Protocol/src/main/java/cn/jsmod2/network/protocol/event/admin Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ package cn .jsmod2 .network .protocol .event .admin ;
2+
3+ import cn .jsmod2 .api .player .IPlayer ;
4+ import cn .jsmod2 .core .ApiId ;
5+ import cn .jsmod2 .core .utils .Utils ;
6+ import cn .jsmod2 .network .protocol .event .packet .EventSetPacket ;
7+
8+ import java .util .ArrayList ;
9+ import java .util .List ;
10+
11+ public class TeamRespawnEventSetPlayerListPacket extends EventSetPacket {
12+
13+ public static final int ID = 185 ;
14+
15+ public List <IPlayer > players ;
16+
17+ public TeamRespawnEventSetPlayerListPacket () {
18+ super (ID );
19+ }
20+
21+ @ Override
22+ public void send () {
23+ List <String > ids = new ArrayList <>();
24+ for (IPlayer player :players ){
25+ ids .add (((ApiId )player ).getApiId ());
26+ }
27+ requester .with ("players" , Utils .arraysToString ((String []) ids .toArray ())).to ();
28+ }
29+ }
You can’t perform that action at this time.
0 commit comments