Sanitize the Regex matcher since it still has nbsp in it (#1850)

This commit is contained in:
ReeeMan
2019-10-28 01:20:40 +00:00
committed by Ganom
parent f3feebdf1c
commit b4346cf5f1

View File

@@ -223,7 +223,7 @@ public class CoxPlugin extends Plugin
{
final String fixedPlayerName = Text.sanitize(rawPlayerName);
if (fixedPlayerName.equals(tpMatcher.group(1)))
if (fixedPlayerName.equals(Text.sanitize(tpMatcher.group(1))))
{
victims.add(new Victim(player, Victim.Type.TELEPORT));
}