9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-30 04:09:15 +00:00

Update to Languagy 2.0.2. Fix anvilgui import.

This commit is contained in:
SamB440
2020-08-02 17:22:59 +01:00
parent 94428a0c35
commit 983a29bb3a
10 changed files with 42 additions and 20 deletions

View File

@@ -31,7 +31,7 @@ repositories {
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'org.spigotmc:spigot-api:1.12-R0.1-SNAPSHOT' // spigot
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' // spigot
compileOnly 'com.github.MilkBowl:VaultAPI:1.7' // vault
implementation 'io.papermc:paperlib:1.0.4' // paperlib - async teleport on Paper
}

View File

@@ -10,6 +10,7 @@ sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
name = 'papermc-repo'
@@ -53,6 +54,7 @@ dependencies {
}
shadowJar {
relocate 'net.islandearth.languagy', 'net.islandearth.rpgregions.languagy'
relocate 'co.aikar.commands', 'net.islandearth.rpgregions.libs.acf'
relocate 'co.aikar.idb', 'net.islandearth.rpgregions.libs.idb'
relocate 'com.github.stefvanschie.inventoryframework', 'net.islandearth.rpgregions.inventoryframework'

View File

@@ -9,6 +9,7 @@ sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
name = 'papermc-repo'
@@ -30,7 +31,7 @@ repositories {
// worldguard
maven { url "https://maven.enginehub.org/repo/" }
// languagy, repo only accessible on request
// languagy
maven {
url = 'https://campfire.islandearth.net/maven/'
}
@@ -38,10 +39,16 @@ repositories {
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'com.sk89q.worldguard:worldguard-legacy:6.2' // worldguard legacy
compileOnly 'com.sk89q.worldedit:worldedit-core:6.1.4-SNAPSHOT' // worldedit
compileOnly 'net.islandearth:languagy:2.0.0-SNAPSHOT' // languagy
compileOnly 'org.spigotmc:spigot-api:1.12-R0.1-SNAPSHOT' // spigot
compileOnly ('com.sk89q.worldguard:worldguard-legacy:6.2') {
exclude group: 'com.destroystokyo.paper'
exclude group: 'org.spigotmc'
}
compileOnly ('com.sk89q.worldedit:worldedit-core:6.1.4-SNAPSHOT') {
exclude group: 'com.destroystokyo.paper'
exclude group: 'org.spigotmc'
}
implementation 'net.islandearth:languagy-api:2.0.2-SNAPSHOT' // languagy
compileOnly 'org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT' // spigot
compileOnly project(':rpgregions')
compileOnly project(':api')
}

View File

@@ -8,6 +8,7 @@ version = pluginVersion
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
name = 'papermc-repo'
@@ -37,9 +38,12 @@ repositories {
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT' // worldguard
compileOnly 'org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT' // spigot
compileOnly 'net.islandearth:languagy:2.0.0-SNAPSHOT' // languagy
implementation 'net.islandearth:languagy-api:2.0.2-SNAPSHOT' // languagy
compileOnly ('com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT') {
exclude group: 'com.destroystokyo.paper'
exclude group: 'org.spigotmc'
}
compileOnly 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT' // spigot
compileOnly 'net.zrips:residence:4.9.0.6' // residence
compileOnly 'me.ryanhamshire:griefprevention:16.13.0' // griefprevention
compileOnly project(':api')

View File

@@ -59,6 +59,7 @@ dependencies {
testImplementation 'com.github.seeseemelk:MockBukkit-v1.15:0.3.0-SNAPSHOT'
testImplementation 'org.reflections:reflections:0.9.12'
implementation 'net.islandearth:languagy-api:2.0.2-SNAPSHOT' // languagy
implementation 'co.aikar:acf-paper:0.5.0-SNAPSHOT' // commands
implementation 'co.aikar:idb-core:1.0.0-SNAPSHOT' // database
implementation 'com.zaxxer:HikariCP:2.4.1' // database
@@ -70,15 +71,17 @@ dependencies {
compileOnly ('com.sk89q.worldguard:worldguard-bukkit:7.0.4-SNAPSHOT') {
exclude group: 'com.destroystokyo.paper'
exclude group: 'org.spigotmc'
}
compileOnly ('com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT') {
exclude group: 'org.bukkit'
exclude group: 'org.spigotmc'
}
compileOnly 'org.spigotmc:spigot-api:1.13-R0.1-SNAPSHOT' // spigot
compileOnly 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT' // spigot
compileOnly 'me.clip:placeholderapi:2.10.4' // PAPI
compileOnly 'net.islandearth:languagy:2.0.0-SNAPSHOT' // languagy
compileOnly 'com.github.shynixn.headdatabase:hdb-api:1.0' // head database
compileOnly 'com.djrapitops:Plan-api:5.1-R0.4' // plan
compileOnly 'org.jetbrains:annotations:19.0.0'
compileOnly project(':api')
}

View File

@@ -6,10 +6,10 @@ import co.aikar.idb.DB;
import com.google.common.collect.ImmutableList;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.islandearth.languagy.language.Language;
import net.islandearth.languagy.language.LanguagyImplementation;
import net.islandearth.languagy.language.LanguagyPluginHook;
import net.islandearth.languagy.language.Translator;
import net.islandearth.languagy.api.language.Language;
import net.islandearth.languagy.api.language.LanguagyImplementation;
import net.islandearth.languagy.api.language.LanguagyPluginHook;
import net.islandearth.languagy.api.language.Translator;
import net.islandearth.rpgregions.api.RPGRegionsAPI;
import net.islandearth.rpgregions.commands.RPGRegionsCommand;
import net.islandearth.rpgregions.effects.RegionEffect;
@@ -62,6 +62,7 @@ public final class RPGRegions extends JavaPlugin implements RPGRegionsAPI, Langu
this.managers = new RPGRegionsManagers(this);
this.registerListeners();
this.registerCommands();
this.hook(this);
this.registerMetrics();
}
@@ -112,6 +113,7 @@ public final class RPGRegions extends JavaPlugin implements RPGRegionsAPI, Langu
header += "Found a bug? Create an issue at https://gitlab.com/SamB440/rpgregions-2/issues" + eol;
header += "Need help? Join our discord at https://discord.gg/fh62mxU" + eol;
config.options().header(header);
config.addDefault("settings.dev.debug", false);
config.addDefault("settings.integration.name", getIntegration());
config.addDefault("settings.storage.mode", "file");
config.addDefault("settings.sql.host", "localhost");
@@ -260,4 +262,9 @@ public final class RPGRegions extends JavaPlugin implements RPGRegionsAPI, Langu
metrics.addCustomChart(new Metrics.SimplePie("storage_mode", () -> getConfig().getString("settings.storage.mode")));
}
@Override
public boolean debug() {
return this.getConfig().getBoolean("settings.dev.debug");
}
}

View File

@@ -1,6 +1,6 @@
package net.islandearth.rpgregions.api;
import net.islandearth.languagy.language.Translator;
import net.islandearth.languagy.api.language.Translator;
import net.islandearth.rpgregions.managers.RPGRegionsManagers;
public interface RPGRegionsAPI {

View File

@@ -3,11 +3,11 @@ package net.islandearth.rpgregions.gui;
import com.github.stefvanschie.inventoryframework.Gui;
import com.github.stefvanschie.inventoryframework.GuiItem;
import com.github.stefvanschie.inventoryframework.pane.StaticPane;
import net.islandearth.languagy.anvilgui.AnvilGUI;
import net.islandearth.rpgregions.RPGRegions;
import net.islandearth.rpgregions.managers.data.region.ConfiguredRegion;
import net.islandearth.rpgregions.utils.ItemStackBuilder;
import net.islandearth.rpgregions.utils.XMaterial;
import net.wesjd.anvilgui.AnvilGUI;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;

View File

@@ -1,7 +1,7 @@
package net.islandearth.rpgregions.translation;
import me.clip.placeholderapi.PlaceholderAPI;
import net.islandearth.languagy.language.Language;
import net.islandearth.languagy.api.language.Language;
import net.islandearth.rpgregions.RPGRegions;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;

View File

@@ -2,8 +2,7 @@ name: RPGRegions
version: @version@
main: net.islandearth.rpgregions.RPGRegions
api-version: '1.13'
depend: [Languagy]
softdepend: [WorldGuard, PlaceholderAPI, HeadDatabase, Residence, Plan, GriefPrevention, Vault]
softdepend: [Languagy, WorldGuard, PlaceholderAPI, HeadDatabase, Residence, Plan, GriefPrevention, Vault]
authors: [SamB440]
description: Discoverable regions
website: https://fortitude.islandearth.net