mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Allow offline players for chat events.
This fixes issues with plugins or applications that rely on JSONAPI to chat. Fixes #1578
This commit is contained in:
parent
71141a0f8d
commit
2cdf08de9f
@ -618,7 +618,7 @@ public class PlayerListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player, true);
|
||||
ChatManager chatManager = null;
|
||||
|
||||
if (mcMMOPlayer.getPartyChatMode()) {
|
||||
|
@ -90,6 +90,10 @@ public final class UserManager {
|
||||
return retrieveMcMMOPlayer(player.getName(), false);
|
||||
}
|
||||
|
||||
public static McMMOPlayer getPlayer(OfflinePlayer player, boolean offlineValid) {
|
||||
return retrieveMcMMOPlayer(player.getName(), offlineValid);
|
||||
}
|
||||
|
||||
public static McMMOPlayer getPlayer(String playerName, boolean offlineValid) {
|
||||
return retrieveMcMMOPlayer(playerName, offlineValid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user