mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-05-30 16:41:23 +00:00
Correctly enable Herochat support
This commit is contained in:
parent
875af5b056
commit
ab95832b17
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue