forked from TuxCoding/FastLogin
Compare commits
1 Commits
add-postgr
...
dependency
Author | SHA1 | Date | |
---|---|---|---|
ef5af297fe |
@ -26,6 +26,7 @@ import java.util.concurrent.ConcurrentMap;
|
|||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
import org.bukkit.plugin.messaging.PluginMessageRecipient;
|
||||||
@ -68,6 +69,14 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPlugin<Comman
|
|||||||
}
|
}
|
||||||
|
|
||||||
PluginManager pluginManager = getServer().getPluginManager();
|
PluginManager pluginManager = getServer().getPluginManager();
|
||||||
|
Plugin protocolLib = pluginManager.getPlugin("ProtocolLib");
|
||||||
|
if (protocolLib != null && !protocolLib.isEnabled()) {
|
||||||
|
logger.warn("Dependency graph issue. ProtocolLib should be loaded first.");
|
||||||
|
logger.warn(getDescription().getSoftDepend().toString());
|
||||||
|
logger.warn(getDescription().getDepend().toString());
|
||||||
|
logger.warn(getDescription().getLoadBefore().toString());
|
||||||
|
}
|
||||||
|
|
||||||
if (bungeeCord) {
|
if (bungeeCord) {
|
||||||
setServerStarted();
|
setServerStarted();
|
||||||
|
|
||||||
|
@ -11,21 +11,14 @@ description: |
|
|||||||
website: ${project.url}
|
website: ${project.url}
|
||||||
dev-url: ${project.url}
|
dev-url: ${project.url}
|
||||||
|
|
||||||
|
# Load the plugin as early as possible to inject it for all players
|
||||||
|
load: STARTUP
|
||||||
|
|
||||||
# This plugin don't have to be transformed for compatibility with Minecraft >= 1.13
|
# This plugin don't have to be transformed for compatibility with Minecraft >= 1.13
|
||||||
api-version: '1.13'
|
api-version: '1.13'
|
||||||
|
|
||||||
softdepend:
|
|
||||||
# We depend either ProtocolLib or ProtocolSupport
|
# We depend either ProtocolLib or ProtocolSupport
|
||||||
- ProtocolSupport
|
depend: [ProtocolLib]
|
||||||
- ProtocolLib
|
|
||||||
- PlaceholderAPI
|
|
||||||
# Auth plugins
|
|
||||||
- AuthMe
|
|
||||||
- LoginSecurity
|
|
||||||
- xAuth
|
|
||||||
- LogIt
|
|
||||||
- UltraAuth
|
|
||||||
- CrazyLogin
|
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
${project.parent.name}:
|
${project.parent.name}:
|
||||||
|
Reference in New Issue
Block a user