Fix bug where transferring a clan to destination server would not load properly server-side.
This commit is contained in:
parent
f47c1b5c14
commit
138a4cf638
@ -73,7 +73,7 @@ public class ClanRepository extends RepositoryBase
|
||||
private static String UPDATE_CLAN_SERVER_ID = "UPDATE clans SET serverId = ?, home = '', generator = '' WHERE id = ?;";
|
||||
private static String UPDATE_CLAN_GENERATOR = "UPDATE clans SET generator = ?, generatorStock = ? WHERE id = ?;";
|
||||
|
||||
private static String GET_CLAN_SERVER = "SELECT id FROM clanServer WHERE clanServer.serverName = ?";
|
||||
private static String GET_CLAN_SERVER = "SELECT id FROM clanServer WHERE clanServer.serverName = ?";
|
||||
private static String ADD_CLAN_SERVER = "INSERT INTO clanServer (serverName) VALUES (?);";
|
||||
|
||||
private String _serverName;
|
||||
@ -175,24 +175,21 @@ public class ClanRepository extends RepositoryBase
|
||||
{
|
||||
if (resultSet.next())
|
||||
{
|
||||
if (resultSet.next())
|
||||
{
|
||||
clan.Id = resultSet.getInt(1);
|
||||
clan.Name = resultSet.getString(2);
|
||||
clan.Description = resultSet.getString(3);
|
||||
clan.Home = resultSet.getString(4);
|
||||
clan.Admin = resultSet.getBoolean(5);
|
||||
clan.Energy = resultSet.getInt(6);
|
||||
clan.Kills = resultSet.getInt(7);
|
||||
clan.Murder = resultSet.getInt(8);
|
||||
clan.Deaths = resultSet.getInt(9);
|
||||
clan.WarWins = resultSet.getInt(10);
|
||||
clan.WarLosses = resultSet.getInt(11);
|
||||
clan.Generator = resultSet.getString(12);
|
||||
clan.GeneratorStock = resultSet.getInt(13);
|
||||
clan.DateCreated = resultSet.getTimestamp(14);
|
||||
clan.LastOnline = resultSet.getTimestamp(15);
|
||||
}
|
||||
clan.Id = resultSet.getInt(1);
|
||||
clan.Name = resultSet.getString(2);
|
||||
clan.Description = resultSet.getString(3);
|
||||
clan.Home = resultSet.getString(4);
|
||||
clan.Admin = resultSet.getBoolean(5);
|
||||
clan.Energy = resultSet.getInt(6);
|
||||
clan.Kills = resultSet.getInt(7);
|
||||
clan.Murder = resultSet.getInt(8);
|
||||
clan.Deaths = resultSet.getInt(9);
|
||||
clan.WarWins = resultSet.getInt(10);
|
||||
clan.WarLosses = resultSet.getInt(11);
|
||||
clan.Generator = resultSet.getString(12);
|
||||
clan.GeneratorStock = resultSet.getInt(13);
|
||||
clan.DateCreated = resultSet.getTimestamp(14);
|
||||
clan.LastOnline = resultSet.getTimestamp(15);
|
||||
}
|
||||
}
|
||||
}, new ColumnVarChar("name", 100, clanName.toLowerCase()));
|
||||
|
@ -24,11 +24,11 @@ public class LobbyShop extends ShopBase<ServerManager>
|
||||
return new LobbyMenu(getPlugin(), this, getClientManager(), getDonationManager(), " " + ChatColor.UNDERLINE + "Lobby Selector", player, "Lobby");
|
||||
}
|
||||
|
||||
public void UpdatePages()
|
||||
public void UpdatePages()
|
||||
{
|
||||
for (ShopPageBase<ServerManager, ? extends ShopBase<ServerManager>> page : getPlayerPageMap().values())
|
||||
{
|
||||
if (page instanceof LobbyMenu)
|
||||
if (page instanceof LobbyMenu)
|
||||
{
|
||||
((LobbyMenu)page).Update();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user