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 Feb 26, 2015
1 parent 5265c17 commit f4e3d27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/cnaude/purpleirc/PurpleIRC.java
Expand Up @@ -1281,11 +1281,13 @@ public String getGroupSuffix(Player player) {
*/
public String getGroupSuffix(String worldName, String player) {
String suffix = "";
UUID uuid = getPlayerUuid(player);
if (vaultHelpers != null) {
if (vaultHelpers.chat != null) {
String group = "";
OfflinePlayer offlinePlayer = getServer().getOfflinePlayer(uuid);
try {
group = vaultHelpers.permission.getPrimaryGroup(worldName, player);
group = vaultHelpers.permission.getPrimaryGroup(worldName, offlinePlayer);
} catch (Exception ex) {
logDebug("Problem with primary group (" + player + "): " + ex.getMessage());
}
Expand Down

0 comments on commit f4e3d27

Please sign in to comment.