| 141 | } |
| 142 | |
| 143 | static void printStatus(color_ostream &out){ |
| 144 | if (!is_enabled) |
| 145 | out.print("{} is disabled\n", plugin_name); |
| 146 | else { |
| 147 | out.print("{} is enabled\n", plugin_name); |
| 148 | auto burrow = getBurrow(out); |
| 149 | if (burrow) |
| 150 | { |
| 151 | out.print("only protecting eggs inside burrow: {}\n", burrow->name); |
| 152 | } |
| 153 | else |
| 154 | { |
| 155 | out.print("protecting all fertile eggs\n"); |
| 156 | } |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | static command_result do_command(color_ostream &out, std::vector<string> ¶meters){ |
| 161 | if (!Core::getInstance().isMapLoaded() || !World::isFortressMode()) { |
no test coverage detected