diff --git a/pom.xml b/pom.xml index 364fc0d2..f58ca463 100644 --- a/pom.xml +++ b/pom.xml @@ -114,21 +114,7 @@ provided - - - me.clip - placeholderapi - 2.9.2 - provided - - - - io.lumine - MythicLib-dist - 1.3-R17 - provided - - + org.jetbrains annotations @@ -142,6 +128,21 @@ 1.0.5 + + org.projectlombok + lombok + 1.18.20 + provided + + + + + io.lumine + MythicLib-dist + 1.3-R17 + provided + + io.lumine MythicMobs-Dist @@ -150,9 +151,9 @@ - org.projectlombok - lombok - 1.18.20 + me.clip + placeholderapi + 2.9.2 provided @@ -177,5 +178,44 @@ provided + + + de.simonsator + PartyAndFriends + 1.0.65 + provided + + + + com.alessiodp + Parties + 3.1.14 + provided + + + + com.gmail.nossr50 + mcMMO + 2.1.209 + provided + + + + de.erethon + DungeonsXL + 0.18-PRE-02 + provided + + + + + com.massivecraft + Factions + 1.6.9.5-2.9.8-RC + provided + + + + diff --git a/src/main/java/net/Indyuce/mmocore/guild/compat/FactionsGuildModule.java b/src/main/java/net/Indyuce/mmocore/guild/compat/FactionsGuildModule.java new file mode 100644 index 00000000..cb5b44df --- /dev/null +++ b/src/main/java/net/Indyuce/mmocore/guild/compat/FactionsGuildModule.java @@ -0,0 +1,25 @@ +package net.Indyuce.mmocore.guild.compat; + +import com.massivecraft.factions.FPlayer; +import com.massivecraft.factions.FPlayers; +import com.massivecraft.factions.Faction; +import net.Indyuce.mmocore.api.player.PlayerData; +import net.Indyuce.mmocore.guild.AbstractGuild; +import net.Indyuce.mmocore.guild.GuildModule; + +public class FactionsGuildModule implements GuildModule { + + @Override + public AbstractGuild getGuild(PlayerData playerData) { + FPlayer fPlayer = FPlayers.getInstance().getByPlayer(playerData.getPlayer()); + return new CustomGuild(fPlayer.getFaction()); + } + + class CustomGuild implements AbstractGuild { + private final Faction faction; + + CustomGuild(Faction faction) { + this.faction = faction; + } + } +}