Little change to the debug info

This commit is contained in:
Jaime Martínez Rincón 2017-12-25 18:36:15 +01:00
parent faf8a56cac
commit 8454bfaaad

View File

@ -5,6 +5,7 @@ import com.google.common.io.ByteStreams;
import com.jaimemartz.playerbalancer.PlayerBalancer; import com.jaimemartz.playerbalancer.PlayerBalancer;
import com.jaimemartz.playerbalancer.section.ServerSection; import com.jaimemartz.playerbalancer.section.ServerSection;
import com.jaimemartz.playerbalancer.settings.props.features.ServerCheckerProps; import com.jaimemartz.playerbalancer.settings.props.features.ServerCheckerProps;
import net.md_5.bungee.api.ChatColor;
import net.md_5.bungee.api.config.ServerInfo; import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.Server; import net.md_5.bungee.api.connection.Server;
import net.md_5.bungee.api.event.PluginMessageEvent; import net.md_5.bungee.api.event.PluginMessageEvent;
@ -76,8 +77,8 @@ public class StatusManager implements Listener {
if (props.isDebug()) { if (props.isDebug()) {
plugin.getLogger().info(String.format( plugin.getLogger().info(String.format(
"Updated server %s, status: [Description: \"%s\", Players: %s, Maximum Players: %s, Online: %s]", "Updated server %s, status: [Description: \"%s\", Players: %s, Maximum Players: %s, Accessible: %s]",
server.getName(), status.getDescription(), status.getPlayers(), status.getMaximum(), status.isOnline() server.getName(), ChatColor.stripColor(status.getDescription()), status.getPlayers(), status.getMaximum(), isAccessible(server)
)); ));
} }