LuckPerms

LuckPerms

41.4k Downloads

Left unformatted color coded database ping indicator in v5.2

emilyy-dev opened this issue ยท 0 comments

commented

Description

When running lp info and using a remote database as storage method, it prints an unformatted color code before the ping indicator.

Reproduction steps

  1. Make LP make use of a remote storage method and restart the server.
  2. Run lp info.
  3. Observe, on the ping indicator line, it prints Ping: &a{duration}ms.

Expected behaviour

A nicely formatted and color coded output :)

Environment details

  • Server type/version: Paper running version 1.16.3 build 231
  • LuckPerms version: v5.2.2

Any other relevant details

image

https://github.com/lucko/LuckPerms/blob/e8b1214219dd6c9dd06c4d2468c722d5884a015b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/sql/connection/hikari/HikariConnectionFactory.java#L126-L141

https://github.com/lucko/LuckPerms/blob/e8b1214219dd6c9dd06c4d2468c722d5884a015b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java#L148-L161