public class SpongeConfigAPI extends Config implements ViaVersionConfig
Constructor and Description |
---|
SpongeConfigAPI(org.spongepowered.api.plugin.PluginContainer pluginContainer,
File configFile) |
Modifier and Type | Method and Description |
---|---|
String |
getBlockedDisconnectMsg()
Get the custom disconnect message
|
List<Integer> |
getBlockedProtocols()
Get the blocked protocols
|
URL |
getDefaultConfigURL() |
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
|
List<String> |
getUnsupportedOptions() |
int |
getWarningPPS()
The number of packets per second to count as a warning
|
protected void |
handleConfig(Map<String,Object> config) |
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 |
isAntiXRay()
Is anti-xray enabled?
|
boolean |
isAutoTeam()
Get if players will be automatically put in the same team when collision preventing is enabled
|
boolean |
isBlockBreakPatch()
Get if our block break patch is enabled to prevent weird ghost glitches.
|
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 |
isItemCache()
Use the item cache to prevent high resource usage
|
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 |
isPistonAnimationPatch()
Get if the 1.11 piston animation patch is enabled
|
boolean |
isPreventCollision()
Get if collision preventing for players is enabled
|
boolean |
isReplacePistons()
Replace extended pistons on 1.10 chunk loading.
|
boolean |
isSendSupportedVersions()
Send supported versions in the status response packet
|
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 |
isStimulatePlayerTick()
Stimulate the player tick
|
boolean |
isSuppress1_13ConversionErrors()
Should we hide errors that occur when trying to converting to 1.13 data?
|
boolean |
isSuppressMetadataErrors()
Get if metadata errors will be suppressed
|
boolean |
isUnknownEntitiesSuppressed()
Get if unknown entity errors will be suppressed
|
get, getBoolean, getDouble, getInt, getIntegerList, getString, getValues, loadConfig, reloadConfig, saveConfig, saveConfig, set
public SpongeConfigAPI(org.spongepowered.api.plugin.PluginContainer pluginContainer, File configFile)
public URL getDefaultConfigURL()
getDefaultConfigURL
in class Config
protected void handleConfig(Map<String,Object> config)
handleConfig
in class Config
public List<String> getUnsupportedOptions()
getUnsupportedOptions
in class Config
public boolean isCheckForUpdates()
ViaVersionConfig
isCheckForUpdates
in interface ViaVersionConfig
public 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 boolean isUnknownEntitiesSuppressed()
ViaVersionConfig
isUnknownEntitiesSuppressed
in interface ViaVersionConfig
public double getHologramYOffset()
ViaVersionConfig
getHologramYOffset
in interface ViaVersionConfig
public boolean isBlockBreakPatch()
ViaVersionConfig
isBlockBreakPatch
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 isStimulatePlayerTick()
ViaVersionConfig
isStimulatePlayerTick
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 List<Integer> 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 isSuppress1_13ConversionErrors()
ViaVersionConfig
isSuppress1_13ConversionErrors
in interface ViaVersionConfig
public boolean isDisable1_13AutoComplete()
ViaVersionConfig
isDisable1_13AutoComplete
in interface ViaVersionConfig
Copyright © 2016–2018. All rights reserved.