public interface ViaVersionConfig
Modifier and Type | Method and Description |
---|---|
BlockedProtocolVersions |
blockedProtocolVersions()
API to check for blocked protocol versions.
|
boolean |
cache1_17Light() |
@Nullable java.lang.String |
chatTypeFormat(java.lang.String translationKey) |
int |
get1_13TabCompleteDelay()
When greater than 0, enables tab complete request delaying by x ticks
|
WorldIdentifiers |
get1_16WorldNamesMap()
Get the world names that should be returned for each Vanilla dimension.
|
com.google.gson.JsonElement |
get1_17ResourcePackPrompt()
Get the message that is sent when a user displays a resource pack prompt.
|
java.lang.String |
getBlockConnectionMethod()
Get the type of block-connection provider which should be used
|
java.lang.String |
getBlockedDisconnectMsg()
Get the custom disconnect message
|
default it.unimi.dsi.fastutil.ints.IntSet |
getBlockedProtocols()
Deprecated.
|
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.
|
java.lang.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
|
java.lang.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.
|
java.lang.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 |
isArmorToggleFix() |
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 |
isChunkBorderFix()
Fix 1.9+ clients not rendering the far away chunks
|
boolean |
isDisable1_13AutoComplete()
Should we disable the 1.13 auto-complete feature to stop spam kicks? (for any server lower than 1.13)
|
boolean |
isForcedUse1_17ResourcePack()
Force 1.17+ client to accept the server resource pack.
|
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 |
isNoDelayShieldBlocking()
Whether the player can block with the shield without a delay.
|
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 |
isShowShieldWhenSwordInHand()
Puts the shield into the second hand when holding a sword.
|
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.
|
void |
setCheckForUpdates(boolean checkForUpdates)
Sets whether to check for updates.
|
boolean |
shouldRegisterUserConnectionOnJoin() |
boolean isCheckForUpdates()
void setCheckForUpdates(boolean checkForUpdates)
checkForUpdates
- true to check for updates on server start and joinsboolean isPreventCollision()
boolean isNewEffectIndicator()
boolean isShowNewDeathMessages()
boolean isSuppressMetadataErrors()
boolean isShieldBlocking()
boolean isNoDelayShieldBlocking()
This option requires isShowShieldWhenSwordInHand()
to be disabled
true
if non delayed shield blocking is enabled.boolean isShowShieldWhenSwordInHand()
This option requires isShieldBlocking()
to be enabled
true
if the shield should appear when holding a swordboolean isHologramPatch()
boolean isPistonAnimationPatch()
boolean isBossbarPatch()
boolean isBossbarAntiflicker()
double getHologramYOffset()
boolean isAutoTeam()
int getMaxPPS()
java.lang.String getMaxPPSKickMessage()
int getTrackingPeriod()
int getWarningPPS()
int getMaxWarnings()
java.lang.String getMaxWarningsKickMessage()
boolean isSendSupportedVersions()
boolean isSimulatePlayerTick()
boolean isItemCache()
boolean isNMSPlayerTicking()
boolean isReplacePistons()
int getPistonReplacementId()
boolean isChunkBorderFix()
boolean isForceJsonTransform()
boolean is1_12NBTArrayFix()
boolean is1_13TeamColourFix()
boolean shouldRegisterUserConnectionOnJoin()
boolean is1_12QuickMoveActionFix()
BlockedProtocolVersions blockedProtocolVersions()
@Deprecated default it.unimi.dsi.fastutil.ints.IntSet getBlockedProtocols()
blockedProtocolVersions()
java.lang.String getBlockedDisconnectMsg()
java.lang.String getReloadDisconnectMsg()
boolean isSuppressConversionWarnings()
boolean isDisable1_13AutoComplete()
boolean isMinimizeCooldown()
boolean isServersideBlockConnections()
java.lang.String getBlockConnectionMethod()
boolean isReduceBlockStorageMemory()
boolean isStemWhenBlockAbove()
boolean isVineClimbFix()
boolean isSnowCollisionFix()
boolean isInfestedBlocksFix()
int get1_13TabCompleteDelay()
boolean isTruncate1_14Books()
boolean isLeftHandedHandling()
boolean is1_9HitboxFix()
boolean is1_14HitboxFix()
boolean isNonFullBlockLightFix()
boolean is1_14HealthNaNFix()
boolean is1_15InstantRespawn()
boolean isIgnoreLong1_16ChannelNames()
boolean isForcedUse1_17ResourcePack()
com.google.gson.JsonElement get1_17ResourcePackPrompt()
WorldIdentifiers get1_16WorldNamesMap()
UserConnection.put(StorableObject)
with
a custom instance of WorldIdentifiers
for the user's UserConnection
.boolean cache1_17Light()
@Nullable java.lang.String chatTypeFormat(java.lang.String translationKey)
boolean isArmorToggleFix()