mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-12-28 11:04:24 +00:00
Prevent getting stuck in chat. Fixes #19
This commit is contained in:
parent
747147ef1e
commit
7f8653c99f
2 changed files with 1 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue