mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-29 18:27:36 +02:00
Update JoinManagement.java
dont check for empty prefixes
This commit is contained in:
@ -77,11 +77,13 @@ public abstract class JoinManagement<P extends C, C, S extends LoginSource> {
|
||||
core.getPlugin().getLog().info("Requesting premium login for registered player: {}", username);
|
||||
requestPremiumLogin(source, profile, username, true);
|
||||
} else {
|
||||
if (profile.getName().startsWith(FloodgateApi.getInstance().getPlayerPrefix())) {
|
||||
if(!FloodgateApi.getInstance().getPlayerPrefix().isEmpty()){
|
||||
if (profile.getName().startsWith(FloodgateApi.getInstance().getPlayerPrefix())) {
|
||||
core.getPlugin().getLog().info("Floodgate Prefix detected on cracked player");
|
||||
source.kick("Your username contains illegal characters");
|
||||
return;
|
||||
}
|
||||
}
|
||||
startCrackedSession(source, profile, username);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user