mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed "lower tool" messages still being displayed even when ability
messages are disabled.
This commit is contained in:
parent
9f1b77a007
commit
96e70aa4d2
@ -24,6 +24,7 @@ Version 1.3.10-dev
|
|||||||
= Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets
|
= Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets
|
||||||
= Fixed ArrayIndexOutOfBounds error caused when trying to use /xplock after logging in but before gaining XP
|
= Fixed ArrayIndexOutOfBounds error caused when trying to use /xplock after logging in but before gaining XP
|
||||||
= Fixed custom tools not properly respecting the Ability_Enabled flag.
|
= Fixed custom tools not properly respecting the Ability_Enabled flag.
|
||||||
|
= Fixed "lower tool" messages still being displayed even when ability messages are disabled.
|
||||||
! Optimized how player placed blocks are tracked
|
! Optimized how player placed blocks are tracked
|
||||||
|
|
||||||
Version 1.3.09
|
Version 1.3.09
|
||||||
|
@ -152,7 +152,10 @@ public class Skills {
|
|||||||
|
|
||||||
if (PP.getToolPreparationMode(tool) && curTime - (PP.getToolPreparationATS(tool) * TIME_CONVERSION_FACTOR) >= FOUR_SECONDS) {
|
if (PP.getToolPreparationMode(tool) && curTime - (PP.getToolPreparationATS(tool) * TIME_CONVERSION_FACTOR) >= FOUR_SECONDS) {
|
||||||
PP.setToolPreparationMode(tool, false);
|
PP.setToolPreparationMode(tool, false);
|
||||||
player.sendMessage(tool.getLowerTool());
|
|
||||||
|
if (Config.getInstance().getAbilityMessagesEnabled()) {
|
||||||
|
player.sendMessage(tool.getLowerTool());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ability.getPermissions(player)) {
|
if (ability.getPermissions(player)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user