From ecefb44d1053126e8f42daba6979874a16b28a6d Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Tue, 9 Apr 2013 13:03:47 +0200 Subject: [PATCH] Remove CAPI integration since that plugin is abandoned. --- lib/capi.jar | Bin 27469 -> 0 bytes src/com/massivecraft/factions/Factions.java | 2 - .../integration/capi/CapiFeatures.java | 19 --- .../integration/capi/PluginCapiListener.java | 115 ------------------ 4 files changed, 136 deletions(-) delete mode 100644 lib/capi.jar delete mode 100644 src/com/massivecraft/factions/integration/capi/CapiFeatures.java delete mode 100644 src/com/massivecraft/factions/integration/capi/PluginCapiListener.java diff --git a/lib/capi.jar b/lib/capi.jar deleted file mode 100644 index 7659562e599aa204890e687befa0fd9b556da028..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 27469 zcmbrl1#BfjmMv&5bD5c$nVFfH?Pr&nne8$?mzkNFnb|HgGcz+onZ4EB^LJ-P+p}MP zQ%Wh7A!SN&BhEed#JNhc;1Fma(9qBzHHCsgAphw?1AzdM7grOemsXHqlowWzmJnA} zW005l90LKlm!BAylci^vMUbVZnVOhxP+?kN-8tMl1Ori${RUm{4|aw7_fyz^Z>9hH z2ebwM^#`zjM;&Zj%`NR1JZ){F;+dVmiQ&cH_#rW&QA-|RREnnym4xcjKuAzJ2(|@k zdELN6#!R>Up`~F&1aKusDUe`rd4M@q_=!e>$?!1i+fQ{iBPgYHl-~6<5yOG2Ig{p2 z1J6f}Z#u9}uyfShjAk*~?jdJXDA$rh9%#dP3;M2oR#%Pnr-{;3V3=qP_l%HQGlG0+ zc*+khLIaPD9U~_56N}gTJ?7QTusqLieQ86{25c zX=PKc4^n$fB3H`%Nc!csN z+@0ovVv}SSM*aUW&5~XpHjJPkAf%B0d74}P+cZ=Bon{kzTSi-ev$Lg}sfiQ7%!Sbe z;9$w9Wa?yV`S+#09fOI@-_a;FebsddH2w%1Sq(LTL?|2wRcL9eh@Z0QGlg!{16%<^ zTGUV_6pA9yO8MUAI#nD zc}drt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qrj>`${q{BM|lU9J3%_*ARrQHt-UMLwKl|4_@n?ri=Z@TvB}uYf^>e*}Cgc=LM= zpT^z)+K<8He+2xihW{2&_#N|U{NbUPovWw35Y+fnC?%A554<0QH;OW z^=SyiV|3e3TV?pK$bS>-_B;Od6GHc6AjMCcdT>|#{RsGX&CTEc46Aqw{KyA?%GP}3 zga0&r&OZS^VQBuFL-C&kzo#WVvOk}43V-eV4W55c(i3{dQ{+cZ;#20*BPa2vi( z^0YaR^ZZk1*sskol=@RazdFGF?pFBsQl74JkB+sU=BE13O8HMWo17#h)FTf1!;9e| L^$PU+$9Mk&n3cp4 diff --git a/src/com/massivecraft/factions/Factions.java b/src/com/massivecraft/factions/Factions.java index 9cc7a26a..460f0919 100644 --- a/src/com/massivecraft/factions/Factions.java +++ b/src/com/massivecraft/factions/Factions.java @@ -17,7 +17,6 @@ import com.massivecraft.factions.adapters.FPermTypeAdapter; import com.massivecraft.factions.adapters.LocationTypeAdapter; import com.massivecraft.factions.adapters.RelTypeAdapter; import com.massivecraft.factions.cmd.*; -import com.massivecraft.factions.integration.capi.CapiFeatures; import com.massivecraft.factions.integration.herochat.HerochatFeatures; import com.massivecraft.factions.integration.Econ; import com.massivecraft.factions.integration.EssentialsFeatures; @@ -113,7 +112,6 @@ public class Factions extends MPlugin EssentialsFeatures.setup(); SpoutFeatures.setup(); Econ.setup(); - CapiFeatures.setup(); HerochatFeatures.setup(); LWCFeatures.setup(); diff --git a/src/com/massivecraft/factions/integration/capi/CapiFeatures.java b/src/com/massivecraft/factions/integration/capi/CapiFeatures.java deleted file mode 100644 index e8fcdb4f..00000000 --- a/src/com/massivecraft/factions/integration/capi/CapiFeatures.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.massivecraft.factions.integration.capi; - -import org.bukkit.Bukkit; -import org.bukkit.plugin.Plugin; - -import com.massivecraft.factions.Factions; - -public class CapiFeatures -{ - public static void setup() - { - Plugin plug = Bukkit.getServer().getPluginManager().getPlugin("capi"); - if (plug != null && plug.getClass().getName().equals("com.massivecraft.capi.P")) - { - Factions.p.log("Integration with the CAPI plugin was successful"); - Bukkit.getPluginManager().registerEvents(new PluginCapiListener(Factions.p), Factions.p); - } - } -} diff --git a/src/com/massivecraft/factions/integration/capi/PluginCapiListener.java b/src/com/massivecraft/factions/integration/capi/PluginCapiListener.java deleted file mode 100644 index 7c25f5e9..00000000 --- a/src/com/massivecraft/factions/integration/capi/PluginCapiListener.java +++ /dev/null @@ -1,115 +0,0 @@ -package com.massivecraft.factions.integration.capi; - -import java.util.LinkedHashSet; -import java.util.Set; - -import org.bukkit.Bukkit; -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.EventPriority; -import org.bukkit.event.Listener; - -import com.massivecraft.capi.Channel; -import com.massivecraft.capi.Channels; -import com.massivecraft.capi.events.CAPIListChannelsEvent; -import com.massivecraft.capi.events.CAPIMessageToChannelEvent; -import com.massivecraft.capi.events.CAPIMessageToPlayerEvent; -import com.massivecraft.capi.events.CAPISelectChannelEvent; -import com.massivecraft.factions.FPlayer; -import com.massivecraft.factions.FPlayers; -import com.massivecraft.factions.Faction; -import com.massivecraft.factions.Factions; -import com.massivecraft.factions.struct.Rel; - -public class PluginCapiListener implements Listener -{ - Factions p; - - Set myChannelIds = new LinkedHashSet(); - - public PluginCapiListener(Factions p) - { - this.p = p; - - myChannelIds.add("faction"); - myChannelIds.add("allies"); - } - - private String replacePlayerTags(String format, FPlayer me, FPlayer you) - { - String meFactionTag = me.getChatTag(you); - format = format.replace("{ME_FACTIONTAG}", meFactionTag.length() == 0 ? "" : meFactionTag); - format = format.replace("{ME_FACTIONTAG_PADR}", meFactionTag.length() == 0 ? "" : meFactionTag+" "); - format = format.replace("{ME_FACTIONTAG_PADL}", meFactionTag.length() == 0 ? "" : " "+meFactionTag); - format = format.replace("{ME_FACTIONTAG_PADB}", meFactionTag.length() == 0 ? "" : " "+meFactionTag+" "); - - String youFactionTag = you.getChatTag(me); - format = format.replace("{YOU_FACTIONTAG}", youFactionTag.length() == 0 ? "" : youFactionTag); - format = format.replace("{YOU_FACTIONTAG_PADR}", youFactionTag.length() == 0 ? "" : youFactionTag+" "); - format = format.replace("{YOU_FACTIONTAG_PADL}", youFactionTag.length() == 0 ? "" : " "+youFactionTag); - format = format.replace("{YOU_FACTIONTAG_PADB}", youFactionTag.length() == 0 ? "" : " "+youFactionTag+" "); - - return format; - } - - @EventHandler(priority = EventPriority.NORMAL) - public void onListChannelsEvent(CAPIListChannelsEvent event) - { - for (Channel c : Channels.i.getAll()) - { - if (myChannelIds.contains(c.getId())) - { - event.getChannels().add(c); - } - } - } - - @EventHandler(priority = EventPriority.NORMAL) - public void onMessageToChannel(CAPIMessageToChannelEvent event) - { - if (event.isCancelled()) return; - if ( ! myChannelIds.contains(event.getChannel().getId())) return; - - Player me = event.getMe(); - FPlayer fme = FPlayers.i.get(me); - Faction myFaction = fme.getFaction(); - - if (event.getChannel().getId().equals("faction") && myFaction.isNormal()) - { - event.getThem().addAll(myFaction.getOnlinePlayers()); - } - else if (event.getChannel().getId().equals("allies")) - { - for (Player somePlayer : Bukkit.getServer().getOnlinePlayers()) - { - FPlayer someFPlayer = FPlayers.i.get(somePlayer); - if (someFPlayer.getRelationTo(fme).isAtLeast(Rel.ALLY)) - event.getThem().add(somePlayer); - } - } - } - - @EventHandler(priority = EventPriority.NORMAL) - public void onMessageToPlayer(CAPIMessageToPlayerEvent event) - { - if (event.isCancelled()) return; - event.setFormat(this.replacePlayerTags(event.getFormat(), FPlayers.i.get(event.getMe()), FPlayers.i.get(event.getYou()))); - } - - @EventHandler(priority = EventPriority.NORMAL) - public void onSelectChannel(CAPISelectChannelEvent event) - { - if (event.isCancelled()) return; - String channelId = event.getChannel().getId(); - if ( ! myChannelIds.contains(channelId)) return; - - Player me = event.getMe(); - FPlayer fme = FPlayers.i.get(me); - - if ( ! fme.hasFaction()) - { - event.setFailMessage(p.txt.parse("You must be member in a faction to use this channel.")); - event.setCancelled(true); - } - } -}