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

Commit

Permalink
Remove deprecated getOfflinePlayer() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Jan 23, 2015
1 parent c79f035 commit 0491615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/cnaude/purpleirc/PurpleIRC.java
Expand Up @@ -1194,10 +1194,11 @@ public String getGroupPrefix(Player player) {
*/
public String getGroupPrefix(String worldName, String player) {
String prefix = "";
UUID uuid = getPlayerUuid(player);
if (vaultHelpers != null) {
if (vaultHelpers.chat != null) {
String group = "";
OfflinePlayer offlinePlayer = getServer().getOfflinePlayer(player);
OfflinePlayer offlinePlayer = getServer().getOfflinePlayer(uuid);
if (offlinePlayer != null) {
try {
group = vaultHelpers.permission.getPrimaryGroup(worldName, offlinePlayer);
Expand Down

0 comments on commit 0491615

Please sign in to comment.