1
0
Fork 0
mirror of https://github.com/xHyroM/lighteco.git synced 2024-11-21 22:41:06 +01:00

refactor: change minimum api version

This commit is contained in:
Jozef Steinhübl 2024-07-16 17:27:10 +02:00
parent 5b2806fd2a
commit c656999576
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F
5 changed files with 12 additions and 12 deletions

View file

@ -1,23 +1,23 @@
package dev.xhyrom.lighteco.currency.money.bukkit;
package dev.xhyrom.lighteco.currency.money.paper;
import dev.xhyrom.lighteco.api.LightEco;
import dev.xhyrom.lighteco.api.LightEcoProvider;
import dev.xhyrom.lighteco.api.manager.CommandManager;
import dev.xhyrom.lighteco.api.manager.CurrencyManager;
import dev.xhyrom.lighteco.api.model.currency.Currency;
import dev.xhyrom.lighteco.currency.money.bukkit.hooks.vault.VaultFactory;
import dev.xhyrom.lighteco.currency.money.paper.hooks.vault.VaultFactory;
import dev.xhyrom.lighteco.currency.money.common.AbstractPlugin;
import dev.xhyrom.lighteco.currency.money.common.Plugin;
import dev.xhyrom.lighteco.currency.money.common.currency.MoneyCurrency;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
public class BukkitMCLoader extends JavaPlugin {
public class PaperMCLoader extends JavaPlugin {
private VaultFactory vaultFactory;
@Getter
private final Plugin plugin;
public BukkitMCLoader() {
public PaperMCLoader() {
this.plugin = new AbstractPlugin(this.getDataFolder().toPath());
}

View file

@ -1,4 +1,4 @@
package dev.xhyrom.lighteco.currency.money.bukkit.hooks.vault;
package dev.xhyrom.lighteco.currency.money.paper.hooks.vault;
import dev.xhyrom.lighteco.api.LightEco;
import dev.xhyrom.lighteco.api.LightEcoProvider;

View file

@ -1,16 +1,16 @@
package dev.xhyrom.lighteco.currency.money.bukkit.hooks.vault;
package dev.xhyrom.lighteco.currency.money.paper.hooks.vault;
import dev.xhyrom.lighteco.currency.money.bukkit.BukkitMCLoader;
import dev.xhyrom.lighteco.currency.money.paper.PaperMCLoader;
import net.milkbowl.vault.economy.Economy;
import org.bukkit.Bukkit;
import org.bukkit.plugin.ServicePriority;
import org.bukkit.plugin.ServicesManager;
public class VaultFactory {
private final BukkitMCLoader loader;
private final PaperMCLoader loader;
private Vault vault;
public VaultFactory(BukkitMCLoader loader) {
public VaultFactory(PaperMCLoader loader) {
this.loader = loader;
}

View file

@ -1,9 +1,9 @@
name: ${name}
description: ${description}
version: ${version}
main: dev.xhyrom.lighteco.currency.money.bukkit.BukkitMCLoader
main: dev.xhyrom.lighteco.currency.money.paper.PaperMCLoader
author: ${author}
api-version: 1.20
api-version: 1.17
load: STARTUP
softdepend:

View file

@ -3,7 +3,7 @@ description: ${description}
version: ${version}
main: dev.xhyrom.lighteco.paper.PaperLightEcoLoader
author: ${author}
api-version: 1.16
api-version: 1.17
load: STARTUP
softdepend: