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:
GJ
2013-11-01 09:12:06 -04:00
parent 71141a0f8d
commit 2cdf08de9f
2 changed files with 5 additions and 1 deletions

View File

@ -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);
}