mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-18 16:25:14 +01:00
24 lines
907 B
Diff
24 lines
907 B
Diff
From cbec17576f5c5472cf0037f9962ca5c806133200 Mon Sep 17 00:00:00 2001
|
|
From: foss-mc <69294560+foss-mc@users.noreply.github.com>
|
|
Date: Wed, 16 Dec 2020 18:25:51 +0800
|
|
Subject: [PATCH] Don't allow name containing dot
|
|
|
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java b/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java
|
|
index 1a4242a2e..d947fad7d 100644
|
|
--- a/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/util/AllowedCharacters.java
|
|
@@ -21,7 +21,8 @@ public final class AllowedCharacters
|
|
} else
|
|
{
|
|
// Don't allow spaces, Yaml config doesn't support them
|
|
- return isChatAllowedCharacter( c ) && c != ' ';
|
|
+ // FlameCord - Don't allow dots
|
|
+ return isChatAllowedCharacter( c ) && c != ' ' && c != '.';
|
|
}
|
|
}
|
|
|
|
--
|
|
2.37.3.windows.1
|
|
|