mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-08-01 11:44:44 +02:00
Prefixed names for packet level Floodgate checks
This commit is contained in:
@@ -131,12 +131,12 @@ public class FloodgateService {
|
|||||||
* iterates over every online FloodgatePlayer and checks if the requested
|
* iterates over every online FloodgatePlayer and checks if the requested
|
||||||
* username can be found
|
* username can be found
|
||||||
*
|
*
|
||||||
* @param username the name of the player
|
* @param prefixedUsername the name of the player with the prefix appended
|
||||||
* @return FloodgatePlayer if found, null otherwise
|
* @return FloodgatePlayer if found, null otherwise
|
||||||
*/
|
*/
|
||||||
public FloodgatePlayer getFloodgatePlayer(String username) {
|
public FloodgatePlayer getFloodgatePlayer(String prefixedUsername) {
|
||||||
for (FloodgatePlayer floodgatePlayer : FloodgateApi.getInstance().getPlayers()) {
|
for (FloodgatePlayer floodgatePlayer : FloodgateApi.getInstance().getPlayers()) {
|
||||||
if (floodgatePlayer.getUsername().equals(username)) {
|
if (floodgatePlayer.getCorrectUsername().equals(prefixedUsername)) {
|
||||||
return floodgatePlayer;
|
return floodgatePlayer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user