mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-28 11:19:24 +00:00
Remove redprotect integration. Add shadowJar task
This commit is contained in:
17
build.gradle
17
build.gradle
@@ -1,4 +1,7 @@
|
||||
apply plugin: 'java'
|
||||
plugins {
|
||||
id 'com.github.johnrengelman.shadow' version '4.0.4'
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group = pluginGroup
|
||||
version = pluginVersion
|
||||
@@ -18,11 +21,6 @@ repositories {
|
||||
url = 'https://oss.sonatype.org/content/groups/public/'
|
||||
}
|
||||
|
||||
maven {
|
||||
name = 'redprotect-repo'
|
||||
url = 'https://raw.githubusercontent.com/FabioZumbi12/RedProtect/mvn-repo/'
|
||||
}
|
||||
|
||||
maven { url = "https://repo.aikar.co/content/groups/aikar/" }
|
||||
|
||||
maven { url "https://maven.enginehub.org/repo/" }
|
||||
@@ -41,11 +39,14 @@ dependencies {
|
||||
implementation 'mysql:mysql-connector-java:5.1.33'
|
||||
implementation 'org.apache.commons:commons-lang3:3.6'
|
||||
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.2-SNAPSHOT'
|
||||
compileOnly 'br.net.fabiozumbi12.RedProtect:RedProtect-Core:7.6.5'
|
||||
compileOnly 'br.net.fabiozumbi12.RedProtect:RedProtect-Spigot:7.6.5'
|
||||
compileOnly name: 'languagy-1.2.5'
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'co.aikar.commands', 'net.islandearth.rpgmap.libs.acf'
|
||||
relocate 'co.aikar.idb', 'net.islandearth.rpgmap.libs.idb'
|
||||
}
|
||||
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
processResources {
|
||||
|
||||
@@ -2,11 +2,25 @@ package net.islandearth.rpgregions.managers.data.yml;
|
||||
|
||||
import net.islandearth.rpgregions.managers.data.StorageManager;
|
||||
import net.islandearth.rpgregions.managers.data.account.RPGRegionsAccount;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
|
||||
public class YamlStorage implements StorageManager {
|
||||
|
||||
@Override
|
||||
public RPGRegionsAccount getAccount(Player player) {
|
||||
public CompletableFuture<RPGRegionsAccount> getAccount(UUID uuid) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConcurrentMap<UUID, RPGRegionsAccount> getCachedAccounts() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeCachedAccount(UUID uuid) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
package net.islandearth.rpgregions.managers.integrations;
|
||||
|
||||
import net.islandearth.rpgregions.managers.integrations.redprotect.RedProtectIntegration;
|
||||
import net.islandearth.rpgregions.managers.integrations.worldguard.WorldGuardIntegration;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.Optional;
|
||||
|
||||
public enum IntegrationType {
|
||||
WORLDGUARD(WorldGuardIntegration.class),
|
||||
REDPROTECT(RedProtectIntegration.class);
|
||||
WORLDGUARD(WorldGuardIntegration.class);
|
||||
|
||||
private final Class<? extends IntegrationManager> clazz;
|
||||
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
package net.islandearth.rpgregions.managers.integrations.redprotect;
|
||||
|
||||
import net.islandearth.rpgregions.managers.integrations.IntegrationManager;
|
||||
import org.bukkit.Location;
|
||||
|
||||
public class RedProtectIntegration implements IntegrationManager {
|
||||
@Override
|
||||
public boolean isInRegion(Location location) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user