mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Added a null check for attacker in onDamage
This commit is contained in:
parent
9f840a3079
commit
3e076d3951
@ -48,7 +48,6 @@ public class vMinecraftCommands{
|
|||||||
cl.register("/whois", "whois", "/whois [user]");
|
cl.register("/whois", "whois", "/whois [user]");
|
||||||
cl.register("/say", "say");
|
cl.register("/say", "say");
|
||||||
cl.register("/a", "adminChatToggle", "Toggle admin chat for every message");
|
cl.register("/a", "adminChatToggle", "Toggle admin chat for every message");
|
||||||
//cl.register("/modify", "modify");
|
|
||||||
cl.register("/rules", "rules", "Displays the rules");
|
cl.register("/rules", "rules", "Displays the rules");
|
||||||
cl.register("/who", "who");
|
cl.register("/who", "who");
|
||||||
cl.register("/promote", "promote", "Promote a player one rank");
|
cl.register("/promote", "promote", "Promote a player one rank");
|
||||||
|
@ -167,7 +167,7 @@ public class vMinecraftListener extends PluginListener {
|
|||||||
if(vMinecraftSettings.getInstance().isEzModo(dplayer.getName())){
|
if(vMinecraftSettings.getInstance().isEzModo(dplayer.getName())){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if(attacker.isPlayer()){
|
if(attacker != null && attacker.isPlayer()){
|
||||||
Player aplayer = attacker.getPlayer();
|
Player aplayer = attacker.getPlayer();
|
||||||
if(vMinecraftUsers.getProfile(dplayer).inParty()){
|
if(vMinecraftUsers.getProfile(dplayer).inParty()){
|
||||||
if(vMinecraftParty.inSameParty(aplayer, dplayer)){
|
if(vMinecraftParty.inSameParty(aplayer, dplayer)){
|
||||||
|
Loading…
Reference in New Issue
Block a user