Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Remove deprecated Vault methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Dec 17, 2014
1 parent 2ca9f3e commit 4a4ec27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/com/cnaude/purpleirc/PurpleIRC.java
Expand Up @@ -961,7 +961,14 @@ public String getPlayerPrefix(String worldName, String player) {
String prefix = "";
if (vaultHelpers != null) {
if (vaultHelpers.chat != null) {
prefix = vaultHelpers.chat.getPlayerPrefix(worldName, player);
OfflinePlayer offlinePlayer = getServer().getOfflinePlayer(player);
if (offlinePlayer != null) {
try {
prefix = vaultHelpers.chat.getPlayerPrefix(worldName, offlinePlayer);
} catch (Exception ex) {
logDebug("getPlayerPrefix (" + player + "): " + ex.getMessage());
}
}
}
}
if (prefix == null) {
Expand Down

0 comments on commit 4a4ec27

Please sign in to comment.