Update JoinManagement.java

dont check for empty prefixes
This commit is contained in:
BOT-Neil
2021-10-01 13:29:02 +02:00
committed by GitHub
parent 8b4d4586a7
commit 0d7b8e237d

View File

@ -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 {