mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-31 03:07:34 +02:00
Document generics
This commit is contained in:
@ -25,21 +25,21 @@
|
|||||||
*/
|
*/
|
||||||
package com.github.games647.fastlogin.core.hooks.bedrock;
|
package com.github.games647.fastlogin.core.hooks.bedrock;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.Optional;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import com.github.games647.craftapi.model.Profile;
|
import com.github.games647.craftapi.model.Profile;
|
||||||
import com.github.games647.craftapi.resolver.RateLimitException;
|
import com.github.games647.craftapi.resolver.RateLimitException;
|
||||||
import com.github.games647.fastlogin.core.StoredProfile;
|
import com.github.games647.fastlogin.core.StoredProfile;
|
||||||
import com.github.games647.fastlogin.core.shared.FastLoginCore;
|
import com.github.games647.fastlogin.core.shared.FastLoginCore;
|
||||||
import com.github.games647.fastlogin.core.shared.LoginSource;
|
import com.github.games647.fastlogin.core.shared.LoginSource;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.Optional;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param B is an instance of either FloodgatePlayer or GeyserSession
|
* @param <B> is an instance of either FloodgatePlayer or GeyserSession
|
||||||
*/
|
*/
|
||||||
public abstract class BedrockService<B> {
|
public abstract class BedrockService<B> {
|
||||||
|
|
||||||
protected final FastLoginCore<?, ?, ?> core;
|
protected final FastLoginCore<?, ?, ?> core;
|
||||||
protected final String allowConflict;
|
protected final String allowConflict;
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@
|
|||||||
*/
|
*/
|
||||||
package com.github.games647.fastlogin.core.hooks.bedrock;
|
package com.github.games647.fastlogin.core.hooks.bedrock;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import com.github.games647.fastlogin.core.shared.FastLoginCore;
|
import com.github.games647.fastlogin.core.shared.FastLoginCore;
|
||||||
import com.github.games647.fastlogin.core.shared.LoginSource;
|
import com.github.games647.fastlogin.core.shared.LoginSource;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.geysermc.geyser.GeyserImpl;
|
import org.geysermc.geyser.GeyserImpl;
|
||||||
import org.geysermc.geyser.session.GeyserSession;
|
import org.geysermc.geyser.session.GeyserSession;
|
||||||
import org.geysermc.geyser.session.auth.AuthType;
|
import org.geysermc.geyser.session.auth.AuthType;
|
||||||
@ -58,7 +58,7 @@ public class GeyserService extends BedrockService<GeyserSession> {
|
|||||||
if ("true".equals(allowConflict)) {
|
if ("true".equals(allowConflict)) {
|
||||||
core.getPlugin().getLog().info("Skipping name conflict checking for player {}", username);
|
core.getPlugin().getLog().info("Skipping name conflict checking for player {}", username);
|
||||||
} else {
|
} else {
|
||||||
super.checkNameConflict(username, source);
|
super.checkNameConflict(username, source);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user