Prevent getting stuck in chat. Fixes #19

This commit is contained in:
Lennart ten Wolde 2016-06-12 18:19:06 +02:00
parent 747147ef1e
commit 7f8653c99f
2 changed files with 1 additions and 21 deletions

View file

@ -24,7 +24,7 @@ public class ChatListener implements Listener {
MPlayer mp = core.getMPlayer(player.getUniqueId());
if(mp.isInChat()) {
// Private chat
if(!isOnline(mp.getPartner())) {
if(!mp.isMarried() || !isOnline(mp.getPartner())) {
mp.setInChat(false);
return;
}

View file

@ -1,20 +0,0 @@
package com.lenis0012.bukkit.marriage2.modules.invsharing;
import com.lenis0012.bukkit.marriage2.internal.MarriagePlugin;
import com.lenis0012.pluginutils.Module;
public class InventorySharing extends Module<MarriagePlugin> {
public InventorySharing(MarriagePlugin plugin) {
super(plugin);
}
@Override
public void enable() {
}
@Override
public void disable() {
}
}