Merge branch 'master' into 'master'
FunCommands See merge request 2009scape/2009scape!148
This commit is contained in:
@@ -156,9 +156,11 @@ class FunCommandSet : CommandSet(Command.Privilege.ADMIN) {
|
|||||||
ContentAPI.addItemOrDrop(p, item.id, item.amount)
|
ContentAPI.addItemOrDrop(p, item.id, item.amount)
|
||||||
ContentAPI.sendMessage(p, "You dig and find ${if(item.amount > 1) "some" else "a"} ${item.name}")
|
ContentAPI.sendMessage(p, "You dig and find ${if(item.amount > 1) "some" else "a"} ${item.name}")
|
||||||
}
|
}
|
||||||
|
ContentAPI.sendNews("${player.username} has found the hidden treasure! Congratulations!!!")
|
||||||
SpadeDigListener.listeners.remove(loc)
|
SpadeDigListener.listeners.remove(loc)
|
||||||
}
|
}
|
||||||
player.inventory.clear()
|
player.inventory.clear()
|
||||||
notify(player, "You have buried your loot at ${loc.toString()}")
|
notify(player, "You have buried your loot at ${loc.toString()}")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user