auto restart system
parent
01be33fa8b
commit
f9814721f1
16
pom.xml
16
pom.xml
|
@ -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>
|
|
@ -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")));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue