File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
src/main/java/de/scriptsdk/api/model/network Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 55
66 <groupId >de.scriptsdk</groupId >
77 <artifactId >api</artifactId >
8- <version >1.0.1 </version >
8+ <version >1.0.2 </version >
99 <name >api</name >
1010
1111 <properties >
6464 <dependency >
6565 <groupId >de.scriptsdk</groupId >
6666 <artifactId >core</artifactId >
67- <version >1.0.2 </version >
67+ <version >1.0.3 </version >
6868 </dependency >
6969 </dependencies >
7070</project >
Original file line number Diff line number Diff line change 3333
3434import java .time .LocalDateTime ;
3535import java .util .Objects ;
36+ import java .util .UUID ;
3637
3738public class ApiClient {
39+
3840 final PacketClient client ;
3941 private final EventHandler handler ;
4042 private Integer contextDelay ;
@@ -49,6 +51,22 @@ public ApiClient(String url, Integer port) {
4951 client .setOnEventAction (handler ::onEventAction );
5052 }
5153
54+ public String getApiClientUrl () {
55+ return client .getUrl ();
56+ }
57+
58+ public Integer getApiClientPort () {
59+ return client .getPort ();
60+ }
61+
62+ public UUID getApiClientId () {
63+ return client .getId ();
64+ }
65+
66+ public ScriptState getApiClientScriptState () {
67+ return client .getState ();
68+ }
69+
5270 public Boolean isTargetHookIsEnabled () {
5371 return targetHookIsEnabled ;
5472 }
You can’t perform that action at this time.
0 commit comments