Class: ESM::Command::Territory::ServerTerritories
- Inherits:
-
ApplicationCommand
- Object
- Base
- ApplicationCommand
- ESM::Command::Territory::ServerTerritories
- Defined in:
- lib/esm/command/territory/server_territories.rb
Defined Under Namespace
Modules: V1
Instance Method Summary collapse
Instance Method Details
#on_execute ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/esm/command/territory/server_territories.rb', line 39 def on_execute check_for_owned_server! @territories = query_exile_database!("all_territories").map(&:to_istruct) check_for_no_territories! tables = build_territory_tables tables.each { |table| reply("```\n#{table}\n```") } end |