We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9306b55 commit 5c383e6Copy full SHA for 5c383e6
2 files changed
pom.xml
@@ -5,7 +5,7 @@
5
6
<groupId>de.scriptsdk</groupId>
7
<artifactId>core</artifactId>
8
- <version>1.0.3</version>
+ <version>1.0.4</version>
9
<name>core</name>
10
11
<properties>
src/main/java/de/scriptsdk/core/model/network/PacketClient.java
@@ -198,6 +198,13 @@ public Boolean connect() {
198
return true;
199
}
200
201
+ public Boolean disconnect() {
202
+ if (client.isConnected()) {
203
+ return client.disconnect();
204
+ }
205
+ return true;
206
207
+
208
private void validateClient() {
209
if (this.port == 0) {
210
throw new PacketClientException("Client cannot communicate to port 0!");
0 commit comments