Package net.md_5.bungee.api
Interface ProxyConfig
Deprecated.
This class is subject to rapid change between releases
Core configuration adaptor for the proxy api.
-
Method Summary
Modifier and TypeMethodDescriptionaddServer
(ServerInfo server) Deprecated.Register the given server to the proxy.boolean
addServers
(Collection<ServerInfo> servers) Deprecated.Register all of the given servers to the proxy.getBrand()
Deprecated.Returns the brand proxy will send to the client.Deprecated.A collection of disabled commands.Deprecated.Use #getFaviconObject instead.Deprecated.The favicon used for the server ping list.Deprecated.The supported versionsDeprecated.Set of all listeners.int
Deprecated.Returns the player max.int
Deprecated.Gets the maximum number of registered plugin channels for any connection.int
Deprecated.Gets the maximum length for any plugin message channel identifier.Deprecated.Gets the reconnect handler typeint
Deprecated.Time in milliseconds to cache server list info from a ping request from the proxy to a server.int
Deprecated.Time in milliseconds before timing out a ping request from the proxy to a server when attempting to request server list info.int
Deprecated.Time in milliseconds before timing out a clients request to connect to a server.getServerInfo
(String name) Deprecated.Gets the server info of a server.Deprecated.The returned map may be modified concurrently by the proxy.Deprecated.Return all servers registered to this proxy, keyed by name.int
Deprecated.How often tab-complete packets can be sent.int
Deprecated.Gets the TCP fast open modeint
Deprecated.int
Deprecated.Time before users are disconnected due to no network activity.getUuid()
Deprecated.UUID used for metrics.boolean
Deprecated.boolean
Deprecated.Should we disable the tab completion limit for 1.13+ clientsboolean
Deprecated.Whether tablist rewriting should be disabled or notboolean
Deprecated.boolean
Deprecated.If this is true, a listener toServerKickEvent
will be registered, which will send a kicked player from x server to the first server inListenerInfo.getServerPriority()
boolean
Deprecated.Whether proxy commands are logged to the proxy log.boolean
Deprecated.Whether we log InitialHandler connectionsboolean
Deprecated.Does the server authenticate with Mojang.boolean
Deprecated.Should al plugin and proxy executed requests for a player to a server require direct access permission to a server.boolean
Deprecated.Returns whenever the TCP fast open mode is enabled.boolean
Deprecated.Whether Netty's async DNS resolver is used for account authentication.removeServer
(ServerInfo server) Deprecated.Un-register the given server from the proxy.removeServerNamed
(String name) Deprecated.Un-register the server with the given name from the proxy.boolean
removeServers
(Collection<ServerInfo> servers) Deprecated.Un-register all of the given servers from the proxy.boolean
removeServersNamed
(Collection<String> names) Deprecated.Un-register servers with any of the given names from the proxy.boolean
Deprecated.Returns whether or not IvanCord should check for global op independently ofPermissionCheckEvent
boolean
Deprecated.Returns whether IvanCord should populate with plugins a query.
-
Method Details
-
getTimeout
int getTimeout()Deprecated.Time before users are disconnected due to no network activity.- Returns:
- the time before users are disconnected due to no network activity.
-
getUuid
String getUuid()Deprecated.UUID used for metrics.- Returns:
- the UUID used for metrics
-
getListeners
Collection<ListenerInfo> getListeners()Deprecated.Set of all listeners.- Returns:
- a set of all listeners
-
getServers
Deprecated.The returned map may be modified concurrently by the proxy. The safe alternative isgetServersCopy()
.Set of all servers.- Returns:
- a map of registered servers
-
getServersCopy
Map<String,ServerInfo> getServersCopy()Deprecated.Return all servers registered to this proxy, keyed by name. The returned map is an immutable snapshot of the actual server collection. It cannot be modified, and it will not change.- Returns:
- all registered remote server destinations
-
getServerInfo
Deprecated.Gets the server info of a server.- Parameters:
name
- the name of the configured server- Returns:
- the server info belonging to the specified server
-
addServer
Deprecated.Register the given server to the proxy. Any currently registered server with the same name will be replaced. This change is not saved to config.yml- Parameters:
server
- The server to register with the proxy- Returns:
- the previously registered server with the same name, or null if there was no such server.
-
addServers
Deprecated.Register all of the given servers to the proxy. This change is not saved to config.yml- Parameters:
servers
- The collection of servers to register with the proxy- Returns:
- true if any servers were added or replaced.
-
removeServerNamed
Deprecated.Un-register the server with the given name from the proxy. This change is not saved to config.yml- Parameters:
name
- The name of the server to unregister- Returns:
- the server that was removed, or null if there is no server with the given name.
-
removeServer
Deprecated.Un-register the given server from the proxy. The server is matched by name only, other fields in the givenServerInfo
are ignored. This change is not saved to config.yml- Parameters:
server
- the server to unregister from the proxy- Returns:
- the server that was removed, or null if there is no server with a matching name.
-
removeServersNamed
Deprecated.Un-register servers with any of the given names from the proxy. This change is not saved to config.yml- Parameters:
names
- a collection of server names to be unregistered- Returns:
- true if any servers were removed.
-
removeServers
Deprecated.Un-register all of the given servers from the proxy. The servers are matched by name only, other fields in the givenServerInfo
are ignored. This change is not saved to config.yml- Parameters:
servers
- a collection of servers to be unregistered- Returns:
- true if any servers were removed.
-
isOnlineMode
boolean isOnlineMode()Deprecated.Does the server authenticate with Mojang.- Returns:
- if the server authenticates to mojang
-
isLogCommands
boolean isLogCommands()Deprecated.Whether proxy commands are logged to the proxy log.- Returns:
- should the proxy log commands
-
getRemotePingCache
int getRemotePingCache()Deprecated.Time in milliseconds to cache server list info from a ping request from the proxy to a server.- Returns:
- cache time
-
getPlayerLimit
int getPlayerLimit()Deprecated.Returns the player max.- Returns:
- player limit
-
getDisabledCommands
Collection<String> getDisabledCommands()Deprecated.A collection of disabled commands.- Returns:
- a collection of disabled commands
-
getServerConnectTimeout
int getServerConnectTimeout()Deprecated.Time in milliseconds before timing out a clients request to connect to a server.- Returns:
- connect timeout
-
getRemotePingTimeout
int getRemotePingTimeout()Deprecated.Time in milliseconds before timing out a ping request from the proxy to a server when attempting to request server list info.- Returns:
- ping timeout
-
getThrottle
Deprecated.The connection throttle delay.- Returns:
- the connection throttle delay
-
isIpForward
Deprecated.Whether the proxy will forward the players information (UUID, IP)- Returns:
- should we forward player information
-
getFavicon
Deprecated.Use #getFaviconObject instead.The encoded favicon.- Returns:
- the encoded favicon
-
getFaviconObject
Favicon getFaviconObject()Deprecated.The favicon used for the server ping list.- Returns:
- the favicon used for the server ping list
-
isLogInitialHandlerConnections
boolean isLogInitialHandlerConnections()Deprecated.Whether we log InitialHandler connections- Returns:
- whether we log InitialHandler connections
-
getGameVersion
String getGameVersion()Deprecated.The supported versions- Returns:
- the supported versions
-
isUseNettyDnsResolver
boolean isUseNettyDnsResolver()Deprecated.Whether Netty's async DNS resolver is used for account authentication.- Returns:
- whether Netty's async DNS resolver is used for account authentication.
-
getTabThrottle
int getTabThrottle()Deprecated.How often tab-complete packets can be sent.
Values in milliseconds.- Returns:
- how often tab-complete packets can be sent in milliseconds
-
isDisableModernTabLimiter
boolean isDisableModernTabLimiter()Deprecated.Should we disable the tab completion limit for 1.13+ clients- Returns:
- should we disable the tab completion limit for 1.13+ clients
-
isDisableEntityMetadataRewrite
boolean isDisableEntityMetadataRewrite()Deprecated.- Returns:
- Should we disable entity metadata rewriting?
-
isDisableTabListRewrite
boolean isDisableTabListRewrite()Deprecated.Whether tablist rewriting should be disabled or not- Returns:
true
if tablist rewriting is disabled,false
otherwise
-
getPluginChannelLimit
int getPluginChannelLimit()Deprecated.Gets the maximum number of registered plugin channels for any connection.- Returns:
- the configured limit
-
getPluginChannelNameLimit
int getPluginChannelNameLimit()Deprecated.Gets the maximum length for any plugin message channel identifier.- Returns:
- the configured limit
-
isKickToLobby
boolean isKickToLobby()Deprecated.If this is true, a listener toServerKickEvent
will be registered, which will send a kicked player from x server to the first server inListenerInfo.getServerPriority()
- Returns:
- should the player kicked be transferred to lobby
-
isTCPFastOpenEnabled
boolean isTCPFastOpenEnabled()Deprecated.Returns whenever the TCP fast open mode is enabled.- Returns:
- is tcp fast open mode enabled
-
getTCPFastOpenMode
int getTCPFastOpenMode()Deprecated.Gets the TCP fast open mode- Returns:
- tcp fast open mode
-
shouldCheckForGlobalOpIndependently
boolean shouldCheckForGlobalOpIndependently()Deprecated.Returns whether or not IvanCord should check for global op independently ofPermissionCheckEvent
- Returns:
- should check for global op independently
-
getReconnectHandlerType
String getReconnectHandlerType()Deprecated.Gets the reconnect handler type- Returns:
- type of the reconnect handler
-
shouldPopulatePluginsWhenQuery
boolean shouldPopulatePluginsWhenQuery()Deprecated.Returns whether IvanCord should populate with plugins a query.- Returns:
- whether to populate query with plugins
-
getBrand
String getBrand()Deprecated.Returns the brand proxy will send to the client.- Returns:
- brand
-
isRequireAccess
boolean isRequireAccess()Deprecated.Should al plugin and proxy executed requests for a player to a server require direct access permission to a server. This is disabled by default, by setting to true; this will be enabled. This flag can also be toggled in the ServerConnectRequest instance- Returns:
- true if players need authorisation for connections
-