mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Null pointer check for game achievement
This commit is contained in:
parent
baeef2802b
commit
710e1c3ff9
@ -1640,7 +1640,7 @@ public final class PurpleBot {
|
||||
* @param achievement
|
||||
*/
|
||||
public void gameAchievement(Player player, Achievement achievement) {
|
||||
if (!this.isConnected()) {
|
||||
if (!this.isConnected() || achievement == null || player == null) {
|
||||
return;
|
||||
}
|
||||
String message = achievement.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user