Correctly enable Herochat support

This commit is contained in:
Lennart ten Wolde 2014-03-13 09:09:55 +01:00
parent 875af5b056
commit ab95832b17
4 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@
<groupId>me.lenis0012.mr</groupId>
<artifactId>Marriage</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
<packaging>jar</packaging>
<name>Marriage</name>

View file

@ -70,6 +70,7 @@ public class Marriage extends JavaPlugin {
if(pm.isPluginEnabled("Herochat")) {
pm.registerEvents(new HerochatListener(this), this);
log.log(Level.INFO, "Herochat was detected, support will be enabled.");
HEROCHAT_ENABLED = true;
}
//setup config.yml

View file

@ -65,7 +65,7 @@ public class PlayerListener implements Listener {
}
event.setCancelled(true);
} else if(mp.isMarried()) {
} else if(mp.isMarried() && !Marriage.HEROCHAT_ENABLED) {
//Replace chat with custom prefix
if(plugin.getConfig().getBoolean("settings.chat-prefix.use")) {
String format = plugin.getConfig().getString("settings.chat-prefix.format");

View file

@ -1,5 +1,5 @@
name: Marriage
version: 1.2.5
version: 1.2.6
main: com.lenis0012.bukkit.marriage.Marriage
author: lenis0012
description: A plugin wich provides the function to start a relationship in minecraft.