mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-22 21:51:31 +01:00
Fix username underscores in debug. Fixes #143
This commit is contained in:
parent
b69255db4b
commit
9df1cbc7f9
@ -105,6 +105,8 @@ public GDDebugData(CommandSender source, OfflinePlayer target, boolean verbose)
|
||||
}
|
||||
|
||||
public void addRecord(String flag, String trust, String source, String target, String location, String user, String permission, Tristate result) {
|
||||
// markdown uses '__' for strong formatting, so underscores must be escaped
|
||||
user = user.replace("_", "\\_");
|
||||
if (this.records.size() < MAX_LINES) {
|
||||
this.records.add("| " + flag + " | " + trust + " | " + source + " | " + target + " | " + location + " | " + user + " | " + permission + " | " + result + " | ");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user