public abstract class AbstractViaConfig extends Config implements ViaVersionConfig
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractViaConfig(File configFile) |
| Modifier and Type | Method and Description |
|---|---|
int |
get1_13TabCompleteDelay()
When greater than 0, enables tab complete request delaying by x ticks
|
String |
getBlockConnectionMethod()
Get the type of block-connection provider which should be used
|
String |
getBlockedDisconnectMsg()
Get the custom disconnect message
|
it.unimi.dsi.fastutil.ints.IntSet |
getBlockedProtocols()
Get the blocked protocols
|
double |
getHologramYOffset()
Get the vertical offset armor stands are being moved with when the hologram patch is enabled
|
int |
getMaxPPS()
Get the maximum number of packets a client can send per second.
|
String |
getMaxPPSKickMessage()
Get the kick message sent if the user hits the max packets per second.
|
int |
getMaxWarnings()
Get the maximum number of warnings the client can have in the interval
|
String |
getMaxWarningsKickMessage()
Get the kick message sent if the user goes over the warnings in the interval
|
int |
getPistonReplacementId()
Get the id for replacing extended pistons.
|
String |
getReloadDisconnectMsg()
Get the message sent to players being kicked on reload.
|
int |
getTrackingPeriod()
The time in seconds that should be tracked for warnings
|
int |
getWarningPPS()
The number of packets per second to count as a warning
|
boolean |
is1_12NBTArrayFix()
Should we fix nbt array's in json chat messages for 1.12 clients
|
boolean |
is1_12QuickMoveActionFix()
Should we fix shift quick move action for 1.12 clients
|
boolean |
is1_13TeamColourFix()
Should we make team colours based on the last colour in team prefix
|
boolean |
is1_14HealthNaNFix() |
boolean |
is1_14HitboxFix()
Fixes velocity bugs due to different hitbox for 1.14+ clients on sub 1.14 servers.
|
boolean |
is1_15InstantRespawn()
Should 1.15 clients respawn instantly / without showing the death screen.
|
boolean |
is1_9HitboxFix()
Fixes velocity bugs due to different hitbox for 1.9-1.13 clients on 1.8 servers.
|
boolean |
isAntiXRay()
Is anti-xray enabled?
|
boolean |
isAutoTeam()
Get if players will be automatically put in the same team when collision preventing is enabled
|
boolean |
isBossbarAntiflicker()
Get if the boss bars for 1.9 & 1.10 clients are being stopped from flickering
This will keep all boss bars on 100% (not recommended)
|
boolean |
isBossbarPatch()
Get if boss bars are fixed for 1.9 & 1.10 clients
|
boolean |
isCheckForUpdates()
Get if the plugin should check for updates
|
boolean |
isDisable1_13AutoComplete()
Should we disable the 1.13 auto-complete feature to stop spam kicks? (for any server lower than 1.13)
|
boolean |
isForceJsonTransform()
Force json transform
|
boolean |
isHologramPatch()
Get if armor stand positions are fixed so holograms show up at the correct height in 1.9 & 1.10
|
boolean |
isIgnoreLong1_16ChannelNames()
Ignores incoming plugin channel messages of 1.16+ clients with channel names longer than 32 charatcers.
|
boolean |
isInfestedBlocksFix()
When activated, infested blocks will be mapped to their normal stone variants for 1.13+ clients.
|
boolean |
isItemCache()
Use the item cache to prevent high resource usage
|
boolean |
isLeftHandedHandling()
Handles left handed info by using unused bit 7 on Client Settings packet
|
boolean |
isMinimizeCooldown()
Tries to minimize cooldown animation.
|
boolean |
isNewEffectIndicator()
Get if 1.9 & 1.10 clients are shown the new effect indicator in the top-right corner
|
boolean |
isNMSPlayerTicking()
Use the NMS player ticking
|
boolean |
isNonFullBlockLightFix()
Fixes non full blocks having 0 light for 1.14+ clients on sub 1.14 servers.
|
boolean |
isPistonAnimationPatch()
Get if the 1.11 piston animation patch is enabled
|
boolean |
isPreventCollision()
Get if collision preventing for players is enabled
|
boolean |
isReduceBlockStorageMemory()
When activated, only the most important blocks are saved in the BlockStorage.
|
boolean |
isReplacePistons()
Replace extended pistons on 1.10 chunk loading.
|
boolean |
isSendSupportedVersions()
Send supported versions in the status response packet
|
boolean |
isServersideBlockConnections()
Enable the serverside blockconnections for 1.13+ clients
|
boolean |
isShieldBlocking()
Get if blocking in 1.9 & 1.10 appears as a player holding a shield
|
boolean |
isShowNewDeathMessages()
Get if 1.9 & 1.10 clients are shown the new death message on the death screen
|
boolean |
isSimulatePlayerTick()
Stimulate the player tick
|
boolean |
isSnowCollisionFix()
When activated, the 1-layer snow will be sent as 2-layer snow to 1.13+ clients to have collision.
|
boolean |
isStemWhenBlockAbove()
When activated with serverside-blockconnections, flower parts with blocks above will be sent as stems.
|
boolean |
isSuppressConversionWarnings()
Should we hide errors that occur when trying to convert block and item data over versions?
|
boolean |
isSuppressMetadataErrors()
Get if metadata errors will be suppressed
|
boolean |
isTruncate1_14Books()
When activated, edited books with more than 50 pages will be shortened to 50.
|
boolean |
isVineClimbFix()
Vines not connected to any blocks will be mapped to air for 1.13+ clients to prevent them from climbing up.
|
protected void |
loadFields() |
void |
reloadConfig()
Reloads the config
|
void |
setCheckForUpdates(boolean checkForUpdates)
Sets whether to check for updates.
|
get, getBoolean, getDefaultConfigURL, getDouble, getInt, getIntegerList, getString, getUnsupportedOptions, getValues, handleConfig, loadConfig, saveConfig, saveConfig, setprotected AbstractViaConfig(File configFile)
public void reloadConfig()
ConfigurationProviderreloadConfig in interface ConfigurationProviderreloadConfig in class Configprotected void loadFields()
public boolean isCheckForUpdates()
ViaVersionConfigisCheckForUpdates in interface ViaVersionConfigpublic void setCheckForUpdates(boolean checkForUpdates)
ViaVersionConfigsetCheckForUpdates in interface ViaVersionConfigcheckForUpdates - true to check for updates on server start and joinspublic boolean isPreventCollision()
ViaVersionConfigisPreventCollision in interface ViaVersionConfigpublic boolean isNewEffectIndicator()
ViaVersionConfigisNewEffectIndicator in interface ViaVersionConfigpublic boolean isShowNewDeathMessages()
ViaVersionConfigisShowNewDeathMessages in interface ViaVersionConfigpublic boolean isSuppressMetadataErrors()
ViaVersionConfigisSuppressMetadataErrors in interface ViaVersionConfigpublic boolean isShieldBlocking()
ViaVersionConfigisShieldBlocking in interface ViaVersionConfigpublic boolean isHologramPatch()
ViaVersionConfigisHologramPatch in interface ViaVersionConfigpublic boolean isPistonAnimationPatch()
ViaVersionConfigisPistonAnimationPatch in interface ViaVersionConfigpublic boolean isBossbarPatch()
ViaVersionConfigisBossbarPatch in interface ViaVersionConfigpublic boolean isBossbarAntiflicker()
ViaVersionConfigisBossbarAntiflicker in interface ViaVersionConfigpublic double getHologramYOffset()
ViaVersionConfiggetHologramYOffset in interface ViaVersionConfigpublic int getMaxPPS()
ViaVersionConfiggetMaxPPS in interface ViaVersionConfigpublic String getMaxPPSKickMessage()
ViaVersionConfiggetMaxPPSKickMessage in interface ViaVersionConfigpublic int getTrackingPeriod()
ViaVersionConfiggetTrackingPeriod in interface ViaVersionConfigpublic int getWarningPPS()
ViaVersionConfiggetWarningPPS in interface ViaVersionConfigpublic int getMaxWarnings()
ViaVersionConfiggetMaxWarnings in interface ViaVersionConfigpublic String getMaxWarningsKickMessage()
ViaVersionConfiggetMaxWarningsKickMessage in interface ViaVersionConfigpublic boolean isAntiXRay()
ViaVersionConfigisAntiXRay in interface ViaVersionConfigpublic boolean isSendSupportedVersions()
ViaVersionConfigisSendSupportedVersions in interface ViaVersionConfigpublic boolean isSimulatePlayerTick()
ViaVersionConfigisSimulatePlayerTick in interface ViaVersionConfigpublic boolean isItemCache()
ViaVersionConfigisItemCache in interface ViaVersionConfigpublic boolean isNMSPlayerTicking()
ViaVersionConfigisNMSPlayerTicking in interface ViaVersionConfigpublic boolean isReplacePistons()
ViaVersionConfigisReplacePistons in interface ViaVersionConfigpublic int getPistonReplacementId()
ViaVersionConfiggetPistonReplacementId in interface ViaVersionConfigpublic boolean isAutoTeam()
ViaVersionConfigisAutoTeam in interface ViaVersionConfigpublic boolean isForceJsonTransform()
ViaVersionConfigisForceJsonTransform in interface ViaVersionConfigpublic boolean is1_12NBTArrayFix()
ViaVersionConfigis1_12NBTArrayFix in interface ViaVersionConfigpublic boolean is1_12QuickMoveActionFix()
ViaVersionConfigis1_12QuickMoveActionFix in interface ViaVersionConfigpublic it.unimi.dsi.fastutil.ints.IntSet getBlockedProtocols()
ViaVersionConfiggetBlockedProtocols in interface ViaVersionConfigpublic String getBlockedDisconnectMsg()
ViaVersionConfiggetBlockedDisconnectMsg in interface ViaVersionConfigpublic String getReloadDisconnectMsg()
ViaVersionConfiggetReloadDisconnectMsg in interface ViaVersionConfigpublic boolean isMinimizeCooldown()
ViaVersionConfigisMinimizeCooldown in interface ViaVersionConfigpublic boolean is1_13TeamColourFix()
ViaVersionConfigis1_13TeamColourFix in interface ViaVersionConfigpublic boolean isSuppressConversionWarnings()
ViaVersionConfigisSuppressConversionWarnings in interface ViaVersionConfigpublic boolean isDisable1_13AutoComplete()
ViaVersionConfigisDisable1_13AutoComplete in interface ViaVersionConfigpublic boolean isServersideBlockConnections()
ViaVersionConfigisServersideBlockConnections in interface ViaVersionConfigpublic String getBlockConnectionMethod()
ViaVersionConfiggetBlockConnectionMethod in interface ViaVersionConfigpublic boolean isReduceBlockStorageMemory()
ViaVersionConfigisReduceBlockStorageMemory in interface ViaVersionConfigpublic boolean isStemWhenBlockAbove()
ViaVersionConfigisStemWhenBlockAbove in interface ViaVersionConfigpublic boolean isVineClimbFix()
ViaVersionConfigisVineClimbFix in interface ViaVersionConfigpublic boolean isSnowCollisionFix()
ViaVersionConfigisSnowCollisionFix in interface ViaVersionConfigpublic boolean isInfestedBlocksFix()
ViaVersionConfigisInfestedBlocksFix in interface ViaVersionConfigpublic int get1_13TabCompleteDelay()
ViaVersionConfigget1_13TabCompleteDelay in interface ViaVersionConfigpublic boolean isTruncate1_14Books()
ViaVersionConfigisTruncate1_14Books in interface ViaVersionConfigpublic boolean isLeftHandedHandling()
ViaVersionConfigisLeftHandedHandling in interface ViaVersionConfigpublic boolean is1_9HitboxFix()
ViaVersionConfigis1_9HitboxFix in interface ViaVersionConfigpublic boolean is1_14HitboxFix()
ViaVersionConfigis1_14HitboxFix in interface ViaVersionConfigpublic boolean isNonFullBlockLightFix()
ViaVersionConfigisNonFullBlockLightFix in interface ViaVersionConfigpublic boolean is1_14HealthNaNFix()
is1_14HealthNaNFix in interface ViaVersionConfigpublic boolean is1_15InstantRespawn()
ViaVersionConfigis1_15InstantRespawn in interface ViaVersionConfigpublic boolean isIgnoreLong1_16ChannelNames()
ViaVersionConfigisIgnoreLong1_16ChannelNames in interface ViaVersionConfigCopyright © 2016–2021. All rights reserved.