andrei1058 / BedWarsProxy

Provides lobby features for mc servers running BedWars1058 in bungee mode.
GNU General Public License v3.0
22 stars 31 forks source link

Placeholders #65

Open ProJakob opened 2 months ago

ProJakob commented 2 months ago

When someone joins my server a scoreboard with their stats is displayed using DeluxeHub. The problem is that the server hangs for 1-2 seconds when requesting the placeholder.

andrei1058 commented 1 month ago

Could you please list the placeholders in question?

ProJakob commented 1 week ago

Sorry for the late response, I was having issues when using these placeholders in the scoreboard: %bw1058_player_level% %bw1058_player_xp_formatted% %bw1058_player_rerq_xp_formatted% %bw1058_player_progress% %bw1058_stats_gamesplayed% %bw1058_stats_total_kills% %bw1058_stats_wins%

Could the lag be caused because the stats are loaded from the database when the placeholder is requested? https://github.com/andrei1058/BedWarsProxy/blob/development/proxy-plugin/src/main/java/com/andrei1058/bedwars/proxy/database/StatsCache.java#L276