Features: - Entity Remover: Automatically clear all entities on the server, maintaining a streamlined and optimized gameplay environment. - High Ping Kick: Automatically remove players with high ping, ensuring a smoother and lag-free multiplayer experience.
- Queue Limiter: Efficiently manage player joins by limiting simultaneous connections, preventing server overload and ensuring a seamless gaming environment for everyone.
/lguard -> Check the version and the author of the plugin.
/lguard help -> View all the commands of the plugin.
/lguard clear -> Clear all the entities on the server.
/lguard player <player> -> Check if the player is a problem for the lags.
lguard -> /lguard
lguard.help -> /lguard help
lguard.clear -> /lguard clear
lguard.player -> /lguard player
lguard.alert -> View the alert in the chat.
Configuration (config.yml):
Code (YAML):
# config.yml # LagGuard is an optimization plugin to remove lag on the your server.
# The disabled-worlds are the worlds where the entity removal is not enforced. Entities will not be cleared in these worlds. clear:
clear-disabled-worlds: - world_to_ignore1
- world_to_ignore2
clear-success: "§5§lLagGuard §8» §7The entities on the server have been removed."
# This is the "messages" of the /lguard player command. player-info:
online: "§5§lLagGuard §8» §7Player %player% - Ping: %ping%ms - Lag Impact: %lagInfo%" not-found: "§5§lLagGuard §8» §7Player not found!" usage: "§5§lLagGuard §8» §7Usage: /lguard player <player>" no-impact: "§aNo significant impact on server lag." minor-impact: "§eMinor impact on server lag." moderate-impact: "§cModerate impact on server lag." significant-impact: "§4Significant impact on server lag."
# This is the automatic entity remover of the plugin. entityremover:
enabled: true
interval: 600
# In seconds warning-time: 30
# In seconds (exemple: 30 secondes before the entity remover) warning-message: "§5§lLagGuard §8» §7The entities on the server are gonna be cleared in 30s."
# When players reach the maximum allowed ping they will receive a violations, when he reach the max-violations he will be kicked. highpingkick:
max-ping: 850
# Maximum allowed ping max-violations: 3
# Maximum violations before kick kick-message: "§5§lLagGuard §8» §7Your ping is too high. Disconnecting for a better experience." alert-message: "§5§lLagGuard §8» §f%player% §7has reached VL: §f%violations%§7. Ping: §f%ping%§7ms. Lag Impact: §f%lagInfo%§7."
# The queue-limiter section allows you to configure settings related to limiting player connections on the server. queue-limiter:
max-joining-players: 5
# The maximum number of players allowed to join the server simultaneously. It depends on your server resources and amount of players. join-time-window-seconds: 10
ban-time-seconds: 10
# The duration, in seconds, for which players are temporarily banned if they attempt to join when the server is in connection limit mode. connection-limit-message: "§5§lLagGuard §8» §7The server is currently in connection limit mode. Please try again in §f%ban-time% §7seconds." reconnection-message: "§5§lLagGuard §8» §aYou can now reconnect."