Added autoreconnect to bungee repos

Fixed up disguise for block hunt.
This commit is contained in:
Jonathan Williams 2013-11-16 02:59:28 -08:00
parent 2a9c11d700
commit c1de12a8e7
4 changed files with 13 additions and 4 deletions

View File

@ -10,7 +10,7 @@ import java.util.List;
public class LobbyBalancerRepository public class LobbyBalancerRepository
{ {
private String _connectionString = "jdbc:mysql://sql.mineplex.com:3306/ServerStatus"; private String _connectionString = "jdbc:mysql://sql.mineplex.com:3306/ServerStatus?autoReconnect=true&failOverReadOnly=false&maxReconnects=10";
private String _userName = "root"; private String _userName = "root";
private String _password = "tAbechAk3wR7tuTh"; private String _password = "tAbechAk3wR7tuTh";
private boolean _us; private boolean _us;

View File

@ -8,7 +8,7 @@ import java.sql.SQLException;
public class MotdRepository public class MotdRepository
{ {
private String _connectionString = "jdbc:mysql://sql.mineplex.com:3306/BungeeServers"; private String _connectionString = "jdbc:mysql://sql.mineplex.com:3306/BungeeServers?autoReconnect=true&failOverReadOnly=false&maxReconnects=10";
private String _userName = "root"; private String _userName = "root";
private String _password = "tAbechAk3wR7tuTh"; private String _password = "tAbechAk3wR7tuTh";

View File

@ -9,7 +9,7 @@ import java.sql.Statement;
public class PlayerCountRepository public class PlayerCountRepository
{ {
private String _connectionString = "jdbc:mysql://sql.mineplex.com:3306/BungeeServers"; private String _connectionString = "jdbc:mysql://sql.mineplex.com:3306/BungeeServers?autoReconnect=true&failOverReadOnly=false&maxReconnects=10";
private String _userName = "root"; private String _userName = "root";
private String _password = "tAbechAk3wR7tuTh"; private String _password = "tAbechAk3wR7tuTh";

View File

@ -44,6 +44,7 @@ import mineplex.core.common.util.UtilWorld;
import mineplex.core.common.util.UtilParticle.ParticleType; import mineplex.core.common.util.UtilParticle.ParticleType;
import mineplex.core.disguise.DisguiseManager; import mineplex.core.disguise.DisguiseManager;
import mineplex.core.disguise.disguises.DisguisePlayer; import mineplex.core.disguise.disguises.DisguisePlayer;
import mineplex.core.disguise.disguises.DisguiseSlime;
import mineplex.core.donation.DonationManager; import mineplex.core.donation.DonationManager;
import mineplex.core.portal.Portal; import mineplex.core.portal.Portal;
import mineplex.core.task.TaskManager; import mineplex.core.task.TaskManager;
@ -178,6 +179,14 @@ public class HubManager extends MiniClientPlugin<HubClient>
{ {
_disguiseManager.disguise(new DisguisePlayer(entity, ChatColor.YELLOW + "MineKart")); _disguiseManager.disguise(new DisguisePlayer(entity, ChatColor.YELLOW + "MineKart"));
} }
else if (ChatColor.stripColor(((LivingEntity)entity).getCustomName()).equalsIgnoreCase("Block Hunt"))
{
DisguiseSlime disguise = new DisguiseSlime(entity);
disguise.SetCustomNameVisible(true);
disguise.SetName(((LivingEntity)entity).getCustomName());
disguise.SetSize(2);
_disguiseManager.disguise(disguise);
}
} }
} }
} }
@ -359,7 +368,7 @@ public class HubManager extends MiniClientPlugin<HubClient>
@EventHandler @EventHandler
public void InventoryCancel(InventoryClickEvent event) public void InventoryCancel(InventoryClickEvent event)
{ {
event.setCancelled(true); //event.setCancelled(true);
} }
@EventHandler @EventHandler