Validate usernames

This commit is contained in:
Spottedleaf
2022-01-01 05:19:37 -08:00
parent e286abbaef
commit 5be900b223
3 changed files with 57 additions and 13 deletions

View File

@@ -527,7 +527,7 @@
+
+ for (int i = 0; i < this.players.size(); ++i) {
+ entityplayer = (ServerPlayer) this.players.get(i);
+ if (entityplayer.getUUID().equals(uuid)) {
+ if (entityplayer.getUUID().equals(uuid) || (io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode() && entityplayer.getGameProfile().getName().equalsIgnoreCase(gameprofile.getName()))) { // Paper - validate usernames
+ list.add(entityplayer);
+ }
+ }