Compare commits

...

2 Commits

Author SHA1 Message Date
Alex f9814721f1 auto restart system 2021-12-27 16:57:19 +01:00
Alex 01be33fa8b implemented KraSocketClient 2021-12-27 15:19:20 +01:00
3 changed files with 23 additions and 1 deletions

16
pom.xml
View File

@ -68,6 +68,18 @@
<groupId>org.mongodb</groupId>
<version>3.12.10</version> <!-- 3.0.4 -->
</dependency>
<dependency>
<groupId>de.dytanic.cloudnet</groupId>
<artifactId>cloudnet-bridge</artifactId>
<version>3.4.0-RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>de.dytanic.cloudnet</groupId>
<artifactId>cloudnet-driver</artifactId>
<version>3.4.0-RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>earth.krakatoa</groupId>
<artifactId>KraSocketClient</artifactId>
@ -101,5 +113,9 @@
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>cloudnet-releases</id>
<url>https://repo.cloudnetservice.eu/repository/releases/</url>
</repository>
</repositories>
</project>

View File

@ -1,7 +1,9 @@
package net.krakatoa.proxy.command;
import de.dytanic.cloudnet.ext.bridge.ServiceInfoSnapshotUtil;
import java.security.SecureRandom;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.chat.TextComponent;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Command;
@ -40,6 +42,10 @@ public class CodeCommand extends Command {
// TODO: add url and copy text
//proxiedPlayer.sendMessage(new TextComponent("§eNeuer Code §c§l" + voiceWebCode));
System.out.println("players " + ServiceInfoSnapshotUtil.getGroupOnlineCount("lobby-1"));
proxiedPlayer.sendMessage(
new TextComponent("players " + ServiceInfoSnapshotUtil.getGroupOnlineCount("lobby-1")));
}
}

View File

@ -77,7 +77,7 @@ public class SocketClientMessageListener implements KraSocketClientEventInterfac
}
ProxySystem.getInstance().getKraSocketClient().getSocketClient().Reconnect();
}, 3L, TimeUnit.SECONDS);
}, 1L, TimeUnit.SECONDS);
}
}
}