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, set
protected AbstractViaConfig(File configFile)
public void reloadConfig()
ConfigurationProvider
reloadConfig
in interface ConfigurationProvider
reloadConfig
in class Config
protected void loadFields()
public boolean isCheckForUpdates()
ViaVersionConfig
isCheckForUpdates
in interface ViaVersionConfig
public void setCheckForUpdates(boolean checkForUpdates)
ViaVersionConfig
setCheckForUpdates
in interface ViaVersionConfig
checkForUpdates
- true to check for updates on server start and joinspublic boolean isPreventCollision()
ViaVersionConfig
isPreventCollision
in interface ViaVersionConfig
public boolean isNewEffectIndicator()
ViaVersionConfig
isNewEffectIndicator
in interface ViaVersionConfig
public boolean isShowNewDeathMessages()
ViaVersionConfig
isShowNewDeathMessages
in interface ViaVersionConfig
public boolean isSuppressMetadataErrors()
ViaVersionConfig
isSuppressMetadataErrors
in interface ViaVersionConfig
public boolean isShieldBlocking()
ViaVersionConfig
isShieldBlocking
in interface ViaVersionConfig
public boolean isHologramPatch()
ViaVersionConfig
isHologramPatch
in interface ViaVersionConfig
public boolean isPistonAnimationPatch()
ViaVersionConfig
isPistonAnimationPatch
in interface ViaVersionConfig
public boolean isBossbarPatch()
ViaVersionConfig
isBossbarPatch
in interface ViaVersionConfig
public boolean isBossbarAntiflicker()
ViaVersionConfig
isBossbarAntiflicker
in interface ViaVersionConfig
public double getHologramYOffset()
ViaVersionConfig
getHologramYOffset
in interface ViaVersionConfig
public int getMaxPPS()
ViaVersionConfig
getMaxPPS
in interface ViaVersionConfig
public String getMaxPPSKickMessage()
ViaVersionConfig
getMaxPPSKickMessage
in interface ViaVersionConfig
public int getTrackingPeriod()
ViaVersionConfig
getTrackingPeriod
in interface ViaVersionConfig
public int getWarningPPS()
ViaVersionConfig
getWarningPPS
in interface ViaVersionConfig
public int getMaxWarnings()
ViaVersionConfig
getMaxWarnings
in interface ViaVersionConfig
public String getMaxWarningsKickMessage()
ViaVersionConfig
getMaxWarningsKickMessage
in interface ViaVersionConfig
public boolean isAntiXRay()
ViaVersionConfig
isAntiXRay
in interface ViaVersionConfig
public boolean isSendSupportedVersions()
ViaVersionConfig
isSendSupportedVersions
in interface ViaVersionConfig
public boolean isSimulatePlayerTick()
ViaVersionConfig
isSimulatePlayerTick
in interface ViaVersionConfig
public boolean isItemCache()
ViaVersionConfig
isItemCache
in interface ViaVersionConfig
public boolean isNMSPlayerTicking()
ViaVersionConfig
isNMSPlayerTicking
in interface ViaVersionConfig
public boolean isReplacePistons()
ViaVersionConfig
isReplacePistons
in interface ViaVersionConfig
public int getPistonReplacementId()
ViaVersionConfig
getPistonReplacementId
in interface ViaVersionConfig
public boolean isAutoTeam()
ViaVersionConfig
isAutoTeam
in interface ViaVersionConfig
public boolean isForceJsonTransform()
ViaVersionConfig
isForceJsonTransform
in interface ViaVersionConfig
public boolean is1_12NBTArrayFix()
ViaVersionConfig
is1_12NBTArrayFix
in interface ViaVersionConfig
public boolean is1_12QuickMoveActionFix()
ViaVersionConfig
is1_12QuickMoveActionFix
in interface ViaVersionConfig
public it.unimi.dsi.fastutil.ints.IntSet getBlockedProtocols()
ViaVersionConfig
getBlockedProtocols
in interface ViaVersionConfig
public String getBlockedDisconnectMsg()
ViaVersionConfig
getBlockedDisconnectMsg
in interface ViaVersionConfig
public String getReloadDisconnectMsg()
ViaVersionConfig
getReloadDisconnectMsg
in interface ViaVersionConfig
public boolean isMinimizeCooldown()
ViaVersionConfig
isMinimizeCooldown
in interface ViaVersionConfig
public boolean is1_13TeamColourFix()
ViaVersionConfig
is1_13TeamColourFix
in interface ViaVersionConfig
public boolean isSuppressConversionWarnings()
ViaVersionConfig
isSuppressConversionWarnings
in interface ViaVersionConfig
public boolean isDisable1_13AutoComplete()
ViaVersionConfig
isDisable1_13AutoComplete
in interface ViaVersionConfig
public boolean isServersideBlockConnections()
ViaVersionConfig
isServersideBlockConnections
in interface ViaVersionConfig
public String getBlockConnectionMethod()
ViaVersionConfig
getBlockConnectionMethod
in interface ViaVersionConfig
public boolean isReduceBlockStorageMemory()
ViaVersionConfig
isReduceBlockStorageMemory
in interface ViaVersionConfig
public boolean isStemWhenBlockAbove()
ViaVersionConfig
isStemWhenBlockAbove
in interface ViaVersionConfig
public boolean isVineClimbFix()
ViaVersionConfig
isVineClimbFix
in interface ViaVersionConfig
public boolean isSnowCollisionFix()
ViaVersionConfig
isSnowCollisionFix
in interface ViaVersionConfig
public boolean isInfestedBlocksFix()
ViaVersionConfig
isInfestedBlocksFix
in interface ViaVersionConfig
public int get1_13TabCompleteDelay()
ViaVersionConfig
get1_13TabCompleteDelay
in interface ViaVersionConfig
public boolean isTruncate1_14Books()
ViaVersionConfig
isTruncate1_14Books
in interface ViaVersionConfig
public boolean isLeftHandedHandling()
ViaVersionConfig
isLeftHandedHandling
in interface ViaVersionConfig
public boolean is1_9HitboxFix()
ViaVersionConfig
is1_9HitboxFix
in interface ViaVersionConfig
public boolean is1_14HitboxFix()
ViaVersionConfig
is1_14HitboxFix
in interface ViaVersionConfig
public boolean isNonFullBlockLightFix()
ViaVersionConfig
isNonFullBlockLightFix
in interface ViaVersionConfig
public boolean is1_14HealthNaNFix()
is1_14HealthNaNFix
in interface ViaVersionConfig
public boolean is1_15InstantRespawn()
ViaVersionConfig
is1_15InstantRespawn
in interface ViaVersionConfig
public boolean isIgnoreLong1_16ChannelNames()
ViaVersionConfig
isIgnoreLong1_16ChannelNames
in interface ViaVersionConfig
Copyright © 2016–2021. All rights reserved.