## Signs Module The Signs Module can be used by plugin authors to create interactive signs - that is - signs which display a list of choices which can be changed by interacting (right-clicking) with the sign. ### signs.menu() function This function is used to construct a new interactive menu on t
(block)
| 96 | |
| 97 | ***/ |
| 98 | function hasSign(block) { |
| 99 | if (__plugin.canary) { |
| 100 | if (block && block.tileEntity && block.tileEntity.setTextOnLine) { |
| 101 | return block.tileEntity; |
| 102 | } |
| 103 | } |
| 104 | if (__plugin.bukkit) { |
| 105 | if (block && block.state && block.state.setLine) { |
| 106 | return block.state; |
| 107 | } |
| 108 | } |
| 109 | return false; |
| 110 | } |
| 111 | var utils = require('utils'); |
| 112 | var menu = require('./menu')(hasSign); |
| 113 | // include all menu exports |
no outgoing calls
no test coverage detected