Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ozaiithejava/TradeSystem-Leaderos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

6 Commits

Repository files navigation

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.

About

adding leaderos support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /