mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Check for null uuid before attempting to get offline player. #2
This commit is contained in:
parent
6b81d2094f
commit
abb7b75920
@ -140,8 +140,8 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>15.0</version>
|
||||
<scope>provided</scope>
|
||||
<version>17.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.cnaude.essentials</groupId>
|
||||
|
4
pom.xml
4
pom.xml
@ -89,9 +89,7 @@
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>15.0</version>
|
||||
<type>jar</type>
|
||||
<scope>provided</scope>
|
||||
<version>17.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Essentials -->
|
||||
|
@ -1195,7 +1195,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
public String getGroupPrefix(String worldName, String player) {
|
||||
String prefix = "";
|
||||
UUID uuid = getPlayerUuid(player);
|
||||
if (vaultHelpers != null) {
|
||||
if (vaultHelpers != null && uuid != null) {
|
||||
if (vaultHelpers.chat != null) {
|
||||
String group = "";
|
||||
OfflinePlayer offlinePlayer = getServer().getOfflinePlayer(uuid);
|
||||
@ -1381,7 +1381,7 @@ public class PurpleIRC extends JavaPlugin {
|
||||
logError(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public String getPlayerHost(final String playerIP) {
|
||||
if (playerIP == null) {
|
||||
return "unknown";
|
||||
|
Loading…
Reference in New Issue
Block a user