@Override public void execute(CommandSender sender, String[] args) { sender.sendMessage( ChatColor.BLUE + "This server is running BungeeCord version " + ProxyServer.getInstance().getVersion() + " by md_5" ); } }
encodeDataPair( data, "version", ProxyServer.getInstance().getVersion() ); encodeDataPair( data, "server", "0" ); encodeDataPair( data, "players", Integer.toString( ProxyServer.getInstance().getOnlineCount() ) );
ModuleVersion bungeeVersion = ModuleVersion.parse( proxy.getVersion() ); if ( bungeeVersion == null )
DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")" + " <- " + serverBrand, brand ); pluginMessage.setData( DefinedPacket.toArray( brand ) ); brand.release();
@Override public String getPlatformVersion() { return getProxy().getVersion(); }
@Override public void execute(CommandSender sender, String[] args) { sender.sendMessage( ChatColor.BLUE + "This server is running Waterfall version " + ProxyServer.getInstance().getVersion() + " by the Waterfall team" ); } }
@Override public PlatformInformation getPlatformInformation() { return new PlatformInformation(PlatformType.BUNGEECORD, plugin.getProxy().getVersion()); }
public BungeeServerProperties(ProxyServer server, PlanConfig config) { super( server.getServers().toString(), "BungeeCord", -1, server.getVersion(), server.getVersion(), () -> config.get(ProxySettings.IP), server.getConfig().getPlayerLimit(), RedisCheck.isClassAvailable() ? new RedisPlayersOnlineSupplier() : server::getOnlineCount ); } }
playerAmount = playerAmount > 500 ? 500 : playerAmount; int onlineMode = plugin.getProxy().getConfig().isOnlineMode() ? 1 : 0; String bungeecordVersion = plugin.getProxy().getVersion(); int managedServers = plugin.getProxy().getServers().size();
playerAmount = playerAmount > 500 ? 500 : playerAmount; int onlineMode = plugin.getProxy().getConfig().isOnlineMode() ? 1 : 0; String bungeecordVersion = plugin.getProxy().getVersion(); int managedServers = plugin.getProxy().getServers().size();
DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")", brand ); user.unsafe().sendPacket( new PluginMessage( user.getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_13 ? "minecraft:brand" : "MC|Brand", DefinedPacket.toArray( brand ), handshakeHandler.isServerForge() ) ); brand.release();
encodeDataPair( data, "version", ProxyServer.getInstance().getVersion() ); encodeDataPair( data, "server", "0" ); encodeDataPair( data, "players", Integer.toString( ProxyServer.getInstance().getOnlineCount() ) );
ModuleVersion bungeeVersion = ModuleVersion.parse( proxy.getVersion() ); if ( bungeeVersion == null )
@SuppressWarnings("deprecation") public PlanBungeeMocker withProxy() { ProxyServer proxyMock = Mockito.mock(ProxyServer.class); doReturn("1.12.2").when(proxyMock).getVersion(); CommandSender console = Mockito.mock(CommandSender.class); doReturn(console).when(proxyMock).getConsole(); ProxyConfig proxyConfig = Mockito.mock(ProxyConfig.class); doReturn(TestConstants.BUNGEE_MAX_PLAYERS).when(proxyConfig).getPlayerLimit(); doReturn(proxyConfig).when(proxyMock).getConfig(); PluginManager pm = Mockito.mock(PluginManager.class); doReturn(pm).when(proxyMock).getPluginManager(); doReturn(proxyMock).when(planMock).getProxy(); return this; }
boolean onlineMode = ProxyServer.getInstance().getConfigurationAdapter().getBoolean("online_mode", true); // TRUE if online mode is enabled String pluginVersion = description.getVersion(); String serverVersion = ProxyServer.getInstance().getVersion(); int playersOnline = ProxyServer.getInstance().getPlayers().size();
boolean onlineMode = ProxyServer.getInstance().getConfigurationAdapter().getBoolean("online_mode", true); // TRUE if online mode is enabled String pluginVersion = description.getVersion(); String serverVersion = ProxyServer.getInstance().getVersion(); int playersOnline = ProxyServer.getInstance().getPlayers().size();
getBoolean("online_mode", true); // TRUE if online mode is enabled String pluginVersion = description.getVersion(); String serverVersion = ProxyServer.getInstance().getVersion(); int playersOnline = ProxyServer.getInstance().getPlayers().size();
brand.release(); brand = ByteBufAllocator.DEFAULT.heapBuffer(); DefinedPacket.writeString( bungee.getName() + " (" + bungee.getVersion() + ")" + " <- " + serverBrand, brand ); pluginMessage.setData( brand ); brand.release(); pluginMessage.setData( ( bungee.getName() + " (" + bungee.getVersion() + ")" + " <- " + serverBrand ).getBytes( "UTF-8" ) );
String brandString = bungee.getName() + " (" + bungee.getVersion() + ")";