Fixed RedProtect API call in PluginBridge (#502)

This commit is contained in:
Rsl1122 2018-01-29 21:14:41 +02:00
parent 3df0d4f88d
commit d697c4875c
2 changed files with 10 additions and 6 deletions

View File

@ -57,6 +57,10 @@
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>redprotect-repo</id>
<url>https://raw.github.com/FabioZumbi12/RedProtect/mvn-repo/</url>
</repository>
<repository>
<id>viaversion-repo</id>
<url>https://repo.viaversion.com</url>
@ -189,8 +193,8 @@
</dependency>
<dependency>
<groupId>br.net.fabiozumbi12.RedProtect</groupId>
<artifactId>RedProtect</artifactId>
<version>7.3.0</version>
<artifactId>RedProtect-Spigot</artifactId>
<version>RELEASE</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -4,8 +4,8 @@
*/
package com.djrapitops.pluginbridge.plan.redprotect;
import br.net.fabiozumbi12.RedProtect.API.RedProtectAPI;
import br.net.fabiozumbi12.RedProtect.Region;
import br.net.fabiozumbi12.RedProtect.Bukkit.RedProtect;
import br.net.fabiozumbi12.RedProtect.Bukkit.Region;
import com.djrapitops.plan.data.element.AnalysisContainer;
import com.djrapitops.plan.data.element.InspectContainer;
import com.djrapitops.plan.data.element.TableContainer;
@ -32,7 +32,7 @@ public class RedProtectData extends PluginData {
@Override
public InspectContainer getPlayerData(UUID uuid, InspectContainer inspectContainer) {
Set<Region> regions = RedProtectAPI.getPlayerRegions(uuid.toString());
Set<Region> regions = RedProtect.get().getAPI().getPlayerRegions(uuid.toString());
inspectContainer.addValue(getWithIcon("Regions", "map-marker", "red"), regions.size());
@ -51,7 +51,7 @@ public class RedProtectData extends PluginData {
@Override
public AnalysisContainer getServerData(Collection<UUID> collection, AnalysisContainer analysisContainer) {
Set<Region> regions = RedProtectAPI.getAllRegions();
Set<Region> regions = RedProtect.get().getAPI().getAllRegions();
analysisContainer.addValue(getWithIcon("All Regions", "map-marker", "red"), regions.size());