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>
|
<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>
|
||||||
|
2
pom.xml
2
pom.xml
@ -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 -->
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user