mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2025-02-02 20:51:26 +01:00
NPE fix
This commit is contained in:
parent
14975229fd
commit
33bed55111
2
pom.xml
2
pom.xml
@ -117,7 +117,7 @@
|
||||
<dependency>
|
||||
<groupId>com.cnaude.essentials</groupId>
|
||||
<artifactId>essentials</artifactId>
|
||||
<version>2.14</version>
|
||||
<version>2.14.1.3</version>
|
||||
<type>jar</type>
|
||||
</dependency>
|
||||
|
||||
|
@ -628,7 +628,12 @@ public class ChatTokenizer {
|
||||
String gSuffix = plugin.getGroupSuffix(player);
|
||||
String group = plugin.getPlayerGroup(player);
|
||||
String displayName = player.getDisplayName();
|
||||
String playerIP = player.getAddress().getAddress().getHostAddress();
|
||||
String playerIP = "";
|
||||
try {
|
||||
player.getAddress().getAddress().getHostAddress();
|
||||
} catch (Exception ex) {
|
||||
plugin.logDebug(ex.getMessage());
|
||||
}
|
||||
String host = plugin.getPlayerHost(playerIP);
|
||||
String worldName = "";
|
||||
String worldAlias = "";
|
||||
|
Loading…
Reference in New Issue
Block a user