mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Fixing case where /party chat (on|off) would throw a NullPointerException
This commit is contained in:
parent
410c946faf
commit
6db9e247b7
@ -28,6 +28,7 @@ Version 1.4.03-dev
|
||||
= Fixed bug where the 'mcmmo.commands.ptp.world.all' was registered twice
|
||||
= Fixed bug where Beast Lore wouldn't work on friendly pets
|
||||
= Fixed bug where Deflect was calculated based on the attacker, not the defender. (We really did this time!)
|
||||
= Fixed bug where /party chat (on|off) would not work
|
||||
! Moved the Salvage unlock level from config.yml to advanced.yml
|
||||
! Changed how Chimaera Wings are acquired, you need to craft them now. (By default, use 5 feathers in a shapeless recipe)
|
||||
- Removed option to disable Salvage via the config file. This should be handled via permissions instead.
|
||||
|
@ -42,6 +42,8 @@ public abstract class ChatCommand implements CommandExecutor {
|
||||
return false;
|
||||
}
|
||||
|
||||
mcMMOPlayer = UserManager.getPlayer((Player) sender);
|
||||
|
||||
enableChatMode(sender);
|
||||
return true;
|
||||
}
|
||||
@ -51,6 +53,8 @@ public abstract class ChatCommand implements CommandExecutor {
|
||||
return false;
|
||||
}
|
||||
|
||||
mcMMOPlayer = UserManager.getPlayer((Player) sender);
|
||||
|
||||
disableChatMode(sender);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user