auto restart system

master
Alex 2021-12-27 16:57:19 +01:00
parent 01be33fa8b
commit f9814721f1
2 changed files with 22 additions and 0 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")));
}
}