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

View File

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

View File

@ -1291,11 +1291,13 @@ public class PurpleIRC extends JavaPlugin {
*/ */
public String getGroupSuffix(String worldName, String player) { public String getGroupSuffix(String worldName, String player) {
String suffix = ""; String suffix = "";
UUID uuid = getPlayerUuid(player);
if (vaultHelpers != null) { if (vaultHelpers != null) {
if (vaultHelpers.chat != null) { if (vaultHelpers.chat != null) {
String group = ""; String group = "";
OfflinePlayer offlinePlayer = getServer().getOfflinePlayer(uuid);
try { try {
group = vaultHelpers.permission.getPrimaryGroup(worldName, player); group = vaultHelpers.permission.getPrimaryGroup(worldName, offlinePlayer);
} catch (Exception ex) { } catch (Exception ex) {
logDebug("Problem with primary group (" + player + "): " + ex.getMessage()); logDebug("Problem with primary group (" + player + "): " + ex.getMessage());
} }