初步实现了跨服务器tp功能(通过初步测试)
This commit is contained in:
parent
53cf8f351d
commit
bce9c700a0
@ -34,6 +34,7 @@ public class ServerInfoDTO {
|
||||
serverInfoDTO.name.value = plugin.getServer().getName();
|
||||
InsertRow insertRow = new InsertRow();
|
||||
insertRow.returningAll()
|
||||
.onConflictDoNothing(new Field("id", null))
|
||||
.field(serverInfoDTO.name)
|
||||
.table("server_info");
|
||||
try (ResultSet res = insertRow.execute()) {
|
||||
|
@ -41,6 +41,9 @@ public class ListDominion {
|
||||
view.add(Line.create().append(manage).append(dominion));
|
||||
}
|
||||
for (Integer serverId : GlobalTeleport.instance.getAllServerInfo().keySet()) {
|
||||
if (serverId == GlobalTeleport.instance.getThisServerId()) {
|
||||
continue;
|
||||
}
|
||||
List<String> names = DominionDTO.selectAllNamesOfServer(serverId, player.getUniqueId());
|
||||
if (names.size() == 0) continue;
|
||||
view.add(Line.create().append(""));
|
||||
|
Reference in New Issue
Block a user