Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
54b7e99c82 | ||
|
|
4b6a0ee05d | ||
|
|
89e5d8898b | ||
|
|
86f230c836 |
@@ -90,6 +90,11 @@ class PacketWindowItems(plugin: EcoPlugin) : AbstractPacketAdapter(plugin, Packe
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun usingAsync(player: Player): Boolean {
|
private fun usingAsync(player: Player): Boolean {
|
||||||
|
if (this.getPlugin().configYml.getStrings("async-display.disable-on-types", false)
|
||||||
|
.map { it.lowercase() }.contains(player.openInventory.type.name.lowercase())) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (this.getPlugin().configYml.getBool("async-display.enabled")) {
|
if (this.getPlugin().configYml.getBool("async-display.enabled")) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,6 +54,12 @@ async-display:
|
|||||||
# Log errors that occur in async processing.
|
# Log errors that occur in async processing.
|
||||||
log-errors: true
|
log-errors: true
|
||||||
|
|
||||||
|
# The inventory types that should never be processed asynchronously.
|
||||||
|
# A list of IDs can be found here:
|
||||||
|
# https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/inventory/InventoryType.html
|
||||||
|
disable-on-types:
|
||||||
|
- 'anvil'
|
||||||
|
|
||||||
# If the server is running under heavy load (below a certain TPS value), enable
|
# If the server is running under heavy load (below a certain TPS value), enable
|
||||||
# async display automatically. This can prevent some server crashes under load.
|
# async display automatically. This can prevent some server crashes under load.
|
||||||
emergency:
|
emergency:
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
version = 6.13.0
|
version = 6.13.1
|
||||||
plugin-name = eco
|
plugin-name = eco
|
||||||
Reference in New Issue
Block a user