forked from 2009Scape/Server
Added the "You do not have an axe to use." message for trying to chop a fruit tree without an axe
This commit is contained in:
parent
3634616475
commit
db05c190fe
1 changed files with 5 additions and 0 deletions
|
|
@ -32,6 +32,11 @@ class FruitTreeChopper : OptionHandler() {
|
|||
val plantable = patch.plantable
|
||||
plantable ?: return false
|
||||
|
||||
if (SkillingTool.getHatchet(player) == null) {
|
||||
sendMessage(player, "You do not have an axe to use.")
|
||||
return true
|
||||
}
|
||||
|
||||
val animation = SkillingTool.getHatchet(player).animation
|
||||
|
||||
submitIndividualPulse(player, object : Pulse(animation.duration) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue