Move Floodgate name conflict check to Core

This commit is contained in:
Smart123s committed 2021-06-12 19:57:31 +02:00
1 parent 0e8ad6e318
commit ee2b3a37f8
7 files changed
+106 -83

No files matched your search

@@ -25,6 +25,8 @@
*/
package com.github.games647.fastlogin.bungee.task;
import org.geysermc.floodgate.api.player.FloodgatePlayer;
import com.github.games647.fastlogin.bungee.BungeeLoginSession;
import com.github.games647.fastlogin.bungee.BungeeLoginSource;
import com.github.games647.fastlogin.bungee.FastLoginBungee;
@@ -89,4 +91,10 @@ public class AsyncPremiumCheck extends JoinManagement<ProxiedPlayer, CommandSend
public void startCrackedSession(BungeeLoginSource source, StoredProfile profile, String username) {
plugin.getSession().put(source.getConnection(), new BungeeLoginSession(username, false, profile));
}
@Override
protected FloodgatePlayer getFloodgatePlayer(Object id) {
// force disabled for BungeeCord for now
return null;
}
}