Remove deprecated Vault methods.

This commit is contained in:
cnaude 2015-02-25 19:58:52 -07:00
parent c3b3b1223c
commit f842fe924a
3 changed files with 6 additions and 4 deletions

View File

@ -177,7 +177,7 @@
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>Vault</artifactId>
<version>1.5.2</version>
<version>1.5.3</version>
<scope>compile</scope>
</dependency>
<dependency>
@ -189,7 +189,7 @@
<dependency>
<groupId>com.cnaude.jobs</groupId>
<artifactId>Jobs</artifactId>
<version>2.13.1</version>
<version>2.16.0</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -132,7 +132,7 @@
<dependency>
<groupId>net.milkbowl.vault</groupId>
<artifactId>Vault</artifactId>
<version>1.5.2</version>
<version>1.5.3</version>
</dependency>
<!-- Herochat -->

View File

@ -1291,11 +1291,13 @@ public class PurpleIRC extends JavaPlugin {
*/
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());
}