auto restart system
parent
01be33fa8b
commit
f9814721f1
16
pom.xml
16
pom.xml
|
@ -68,6 +68,18 @@
|
||||||
<groupId>org.mongodb</groupId>
|
<groupId>org.mongodb</groupId>
|
||||||
<version>3.12.10</version> <!-- 3.0.4 -->
|
<version>3.12.10</version> <!-- 3.0.4 -->
|
||||||
</dependency>
|
</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>
|
<dependency>
|
||||||
<groupId>earth.krakatoa</groupId>
|
<groupId>earth.krakatoa</groupId>
|
||||||
<artifactId>KraSocketClient</artifactId>
|
<artifactId>KraSocketClient</artifactId>
|
||||||
|
@ -101,5 +113,9 @@
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</snapshots>
|
</snapshots>
|
||||||
</repository>
|
</repository>
|
||||||
|
<repository>
|
||||||
|
<id>cloudnet-releases</id>
|
||||||
|
<url>https://repo.cloudnetservice.eu/repository/releases/</url>
|
||||||
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
</project>
|
</project>
|
|
@ -1,7 +1,9 @@
|
||||||
package net.krakatoa.proxy.command;
|
package net.krakatoa.proxy.command;
|
||||||
|
|
||||||
|
import de.dytanic.cloudnet.ext.bridge.ServiceInfoSnapshotUtil;
|
||||||
import java.security.SecureRandom;
|
import java.security.SecureRandom;
|
||||||
import net.md_5.bungee.api.CommandSender;
|
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.connection.ProxiedPlayer;
|
||||||
import net.md_5.bungee.api.plugin.Command;
|
import net.md_5.bungee.api.plugin.Command;
|
||||||
|
|
||||||
|
@ -40,6 +42,10 @@ public class CodeCommand extends Command {
|
||||||
// TODO: add url and copy text
|
// TODO: add url and copy text
|
||||||
//proxiedPlayer.sendMessage(new TextComponent("§eNeuer Code §c§l" + voiceWebCode));
|
//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