--- deliantra/server/ext/commands.ext 2007/03/02 11:13:50 1.25 +++ deliantra/server/ext/commands.ext 2007/03/02 11:23:17 1.26 @@ -89,6 +89,20 @@ 1 }; +cf::register_command mapinfo => sub { + my ($ob) = @_; + + my $map = $ob->map + or return; + $ob->reply (undef, (sprintf "%s (%s) %s", $map->name, $map->path, $ob->region->longname)); + $ob->reply (undef, (sprintf "players: %d difficulty: %d size: %d start: %dx%d timeout: %d", + $map->players, $map->difficulty, $map->width, $map->height, $map->enter_x, $map->enter_y, $map->timeout)) + if $ob->flag (cf::FLAG_WIZ); + $ob->reply (undef, $map->msg); + + 1 +}; + cf::register_command whereami => sub { my ($ob) = @_;