Updated bungee library

Fixed server ping Event.java
Removed crash item in hub.
This commit is contained in:
Jonathan Williams 2013-10-28 01:37:23 -05:00
parent 09a8cbe558
commit 4306d2444f
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -2,6 +2,7 @@ package mineplex.bungee.playerCount;
import java.util.concurrent.TimeUnit;
import net.md_5.bungee.api.ServerPing.Players;
import net.md_5.bungee.api.config.ListenerInfo;
import net.md_5.bungee.api.event.ProxyPingEvent;
import net.md_5.bungee.api.plugin.Listener;
@ -43,6 +44,7 @@ public class PlayerCount implements Listener, Runnable
public void ServerPing(ProxyPingEvent event)
{
net.md_5.bungee.api.ServerPing serverPing = event.getResponse();
event.setResponse(new net.md_5.bungee.api.ServerPing(serverPing.getProtocolVersion(), serverPing.getGameVersion(), serverPing.getMotd(), _totalPlayers, _totalMaxPlayers));
event.setResponse(new net.md_5.bungee.api.ServerPing(serverPing.getVersion(), new Players(_totalPlayers, _totalMaxPlayers), serverPing.getMotd(), serverPing.getFavicon()));
}
}

View File

@ -235,7 +235,7 @@ public class ServerGameMenu extends ShopPageBase<ServerManager, QuickShop>
ChatColor.RESET + "Squid Sauce"
}));
_minigameCycle.add(ItemStackFactory.Instance.CreateStack(144, (byte)1, 1, ChatColor.RESET + C.Bold + ChatColor.YELLOW + "Arcade " + C.cGray + "Mixed Games", new String []
_minigameCycle.add(ItemStackFactory.Instance.CreateStack(309, (byte)0, 1, ChatColor.RESET + C.Bold + ChatColor.YELLOW + "Arcade " + C.cGray + "Mixed Games", new String []
{
ChatColor.RESET + "",
ChatColor.RESET + "Play all of these fun minigames:",