mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Remove deprecated Vault methods.
This commit is contained in:
parent
c3b3b1223c
commit
f842fe924a
@ -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>
|
||||
|
2
pom.xml
2
pom.xml
@ -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 -->
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user