mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-22 07:14:44 +02:00
Added a null check for attacker in onDamage
This commit is contained in:
@ -167,7 +167,7 @@ public class vMinecraftListener extends PluginListener {
|
||||
if(vMinecraftSettings.getInstance().isEzModo(dplayer.getName())){
|
||||
return true;
|
||||
}
|
||||
if(attacker.isPlayer()){
|
||||
if(attacker != null && attacker.isPlayer()){
|
||||
Player aplayer = attacker.getPlayer();
|
||||
if(vMinecraftUsers.getProfile(dplayer).inParty()){
|
||||
if(vMinecraftParty.inSameParty(aplayer, dplayer)){
|
||||
|
Reference in New Issue
Block a user