mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2026-02-05 22:55:12 +01:00
Remove deprecated API methods
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.github.games647.fastlogin.bungee;
|
||||
|
||||
import com.github.games647.fastlogin.bungee.hooks.BungeeAuthHook;
|
||||
import com.github.games647.fastlogin.bungee.hooks.BungeeAuthPlugin;
|
||||
import com.github.games647.fastlogin.bungee.listener.PlayerConnectionListener;
|
||||
import com.github.games647.fastlogin.bungee.listener.PluginMessageListener;
|
||||
import com.google.common.collect.Maps;
|
||||
@@ -97,11 +96,6 @@ public class FastLoginBungee extends Plugin {
|
||||
return core;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setAuthPluginHook(BungeeAuthPlugin authPlugin) {
|
||||
core.setAuthPluginHook(authPlugin);
|
||||
}
|
||||
|
||||
public Configuration getConfig() {
|
||||
return config;
|
||||
}
|
||||
@@ -110,16 +104,6 @@ public class FastLoginBungee extends Plugin {
|
||||
return session;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the auth plugin hook for BungeeCord
|
||||
*
|
||||
* @return the auth hook for BungeeCord. null if none found
|
||||
*/
|
||||
@Deprecated
|
||||
public BungeeAuthPlugin getBungeeAuthPlugin() {
|
||||
return (BungeeAuthPlugin) core.getAuthPluginHook();
|
||||
}
|
||||
|
||||
private void registerHook() {
|
||||
Plugin plugin = getProxy().getPluginManager().getPlugin("BungeeAuth");
|
||||
if (plugin != null) {
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.github.games647.fastlogin.bungee.hooks;
|
||||
|
||||
import com.github.games647.fastlogin.core.hooks.AuthPlugin;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
|
||||
/**
|
||||
* @deprecated please use com.github.games647.fastlogin.core.hooks.AuthPlugin<net.md_5.bungee.api.connection.ProxiedPlayer>
|
||||
*/
|
||||
@Deprecated
|
||||
public interface BungeeAuthPlugin extends AuthPlugin<ProxiedPlayer> {
|
||||
|
||||
@Override
|
||||
boolean forceLogin(ProxiedPlayer player);
|
||||
|
||||
@Override
|
||||
boolean isRegistered(String playerName) throws Exception;
|
||||
|
||||
@Override
|
||||
boolean forceRegister(ProxiedPlayer player, String password);
|
||||
}
|
||||
Reference in New Issue
Block a user