mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
You'll need either Tree Feller or Skull Splitter permission to ready tool
This commit is contained in:
parent
bf361f6824
commit
9ef68d226a
@ -103,7 +103,8 @@ public class Skills {
|
|||||||
* Basically the tool always needs to ready and we check to see if the cooldown is over when the user takes action
|
* Basically the tool always needs to ready and we check to see if the cooldown is over when the user takes action
|
||||||
*/
|
*/
|
||||||
if (skill == SkillType.WOODCUTTING || skill == SkillType.AXES) {
|
if (skill == SkillType.WOODCUTTING || skill == SkillType.AXES) {
|
||||||
if (tool.inHand(inHand) && !PP.getToolPreparationMode(tool)) {
|
if ((mcPermissions.getInstance().treeFeller(player) || mcPermissions.getInstance().skullSplitter(player)) &&
|
||||||
|
tool.inHand(inHand) && !PP.getToolPreparationMode(tool)) {
|
||||||
if (LoadProperties.enableAbilityMessages) {
|
if (LoadProperties.enableAbilityMessages) {
|
||||||
player.sendMessage(tool.getRaiseTool());
|
player.sendMessage(tool.getRaiseTool());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user