Ping Event

Discussion in 'BungeeCord Plugin Help' started by Antonio, Jul 12, 2015.

  1. Hello i create plugin for bungee and i have one problem.

    My code is:
    PHP:
    @EventHandler
        public void onProxyPing(ProxyPingEvent event) {
         List<String> lines = Arrays.asList("§e§l<§c§l!§e§l>§b§l===-===-===-===-===-===-===-===-===§e§l<§c§l!§e§l>",
                 "                             §b§lKTS§4§lGaming", "§e§l<§c§l!§e§l>§b§l===-===-===-===-===-===-===-===-===§e§l<§c§l!§e§l>\n\n",
                 "§7§l---------------------------------------", " §a§l> §c§lHUB: §7" + online("hub") + "§c/§4200  §a§lON",
                 " §a§l> §c§lSurvival: §7" + online("survival") + "§c/§4200  §a§lON", " §6§l> §c§lPrison: §7" + online("prison") + "§c/§4200  §6§lMANUTENÇÃO",
                 " §6§l> §c§lMiniGames: §7" + online("minigames") + "§c/§4200  §6§lMANUTENÇÃO","§7§l---------------------------------------\n\n",
                 "§e§l<§c§l!§e§l>§b§l===-===-===-===-===-===-===-===-===§e§l<§c§l!§e§l>\n", "             §4§lWebSite §e§l: §c§lktsgaming.org",
                 "             §4§lEmail §e§l: §c§[email protected]", "             §4§lTeamSpeak3 §e§l: §c§lts.ktsgaming.org\n",
                 "§e§l<§c§l!§e§l>§b§l===-===-===-===-===-===-===-===-===§e§l<§c§l!§e§l>");
            PlayerInfo[] sample = new PlayerInfo[lines.size()];
            for (int i = 0; i < sample.length; i++) {
               
                sample[i] = new PlayerInfo(lines.get(i), "");
            }
            event.getResponse().getPlayers().setSample(sample);
        }
    my problem is on ping server see a space... se this print: http://prntscr.com/7rvs06

    have any resolve this?

    thanks for help and sorry for my bad english ;b
     
  2. Is that still a thing; the short lived fame of custom ping player lists ran out quick?
    It could be a client side rendering bug, since you aren't sending the white spaces.
     
  3. humm i see in another servers ( bungees ) and see nice ( dont have this spaces )

    thanks for help ;b