Download the plugin from the following address: https://github.com/erikzimmermann/TradeSystem
Then, go to the spigot package and import the ozaii package into it.
Next, paste the following into the config.yml file:
ozaii: listener: debug: true Database: MySQL: Connection_URL: "jdbc:mysql://localhost:3306/<name_of_database_where_leaderos_is>?useSSL=false&autoReconnect=true" User: "username" Password: "password"
After that, go to LayoutManager.java and paste the following code just below the Vault check:
if (PluginDependencies.isEnabled(LeaderOSDependency.class)) { if (MySQLDatabaseManager.getInstance().checkConn()){ message.addExtra("\n§8- §eLeaderOS layout §8["); TextComponent activateLeaderos = new TextComponent("§aactivate"); //noinspection deprecation activateLeaderos.setHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new BaseComponent[] {new TextComponent("§8» §aActivate the LeaderOS layout §8«")})); activateLeaderos.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/tradesystem layout activate " + DefaultLeaderosPattern.NAME)); message.addExtra(activateLeaderos); message.addExtra("§8]"); } else { TradeSystem.getInstance().getLogger().warning("The required database connection for LeaderOS credits could not be established, so it cannot be used."); } }
Then, go to PluginDependencies.java and add the following line under the private static final PluginDependency[] EXTERNALS = { array:
new PlaceholderDependency(), new EssentialsDependency(), new TokenManagerDependency(), new VaultDependency(), new PlayerPointsDependency(), new GriefDefenderDependency(), new MMOItemsDependency(), new WorldGuardDependency(), new LeaderOSDependency()
This will integrate the LeaderOS dependency as part of the external plugin dependencies.