Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Check for valid version of FactionChat.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Dec 9, 2014
1 parent ffb628c commit dbe62e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dependency-reduced-pom.xml
Expand Up @@ -180,7 +180,7 @@
<dependency>
<groupId>com.cnaude.factions</groupId>
<artifactId>Factions</artifactId>
<version>2.5.0</version>
<version>2.7.3</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -204,13 +204,13 @@
<dependency>
<groupId>com.cnaude.mcore</groupId>
<artifactId>MassiveCore</artifactId>
<version>7.3.0</version>
<version>2.7.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.cnaude.factionchat</groupId>
<artifactId>FactionChat</artifactId>
<version>1.791</version>
<version>1.8.6</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -165,7 +165,7 @@
<dependency>
<groupId>com.cnaude.factionchat</groupId>
<artifactId>FactionChat</artifactId>
<version>1.791</version>
<version>1.8.6</version>
</dependency>

<!-- TitanChat -->
Expand Down
9 changes: 7 additions & 2 deletions src/main/java/com/cnaude/purpleirc/PurpleIRC.java
Expand Up @@ -276,8 +276,13 @@ public void onEnable() {
}
if (isFactionsEnabled()) {
if (isPluginEnabled("FactionChat")) {
logInfo("Enabling FactionChat support.");
fcHook = new FactionChatHook(this);
String s = getServer().getPluginManager().getPlugin("FactionChat").getDescription().getVersion();
if (s.startsWith("1.7")) {
logInfo("FactionChat v" + s + " not supported. Please install 1.8 or newer.");
} else {
logInfo("Enabling FactionChat support.");
fcHook = new FactionChatHook(this);
}
} else {
logInfo("FactionChat not detected.");
}
Expand Down

0 comments on commit dbe62e3

Please sign in to comment.