ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.220 by root, Sat Feb 17 23:54:35 2007 UTC vs.
Revision 1.222 by root, Tue Mar 6 03:06:00 2007 UTC

1052 1052
1053 # nuke player maps 1053 # nuke player maps
1054 $cf::MAP{$_}->nuke for grep /$prefix/, keys %cf::MAP; 1054 $cf::MAP{$_}->nuke for grep /$prefix/, keys %cf::MAP;
1055 1055
1056 IO::AIO::aio_rmtree $temp; 1056 IO::AIO::aio_rmtree $temp;
1057}
1058
1059=item $pl->kick
1060
1061Kicks a player out of the game. This destroys the connection.
1062
1063=cut
1064
1065sub kick {
1066 my ($pl, $kicker) = @_;
1067
1068 $pl->invoke (cf::EVENT_PLAYER_KICK, $kicker);
1069 $pl->killer ("kicked");
1070 $pl->ns->destroy;
1057} 1071}
1058 1072
1059=item cf::player::list_logins 1073=item cf::player::list_logins
1060 1074
1061Returns am arrayref of all valid playernames in the system, can take a 1075Returns am arrayref of all valid playernames in the system, can take a
2458 2472
2459 warn "loading extensions"; 2473 warn "loading extensions";
2460 cf::load_extensions; 2474 cf::load_extensions;
2461 2475
2462 warn "reattaching attachments to objects/players"; 2476 warn "reattaching attachments to objects/players";
2463 _global_reattach; 2477 _global_reattach; # objects, sockets
2464 warn "reattaching attachments to maps"; 2478 warn "reattaching attachments to maps";
2465 reattach $_ for values %MAP; 2479 reattach $_ for values %MAP;
2480 warn "reattaching attachments to players";
2481 reattach $_ for values %PLAYER;
2466 2482
2467 warn "loading reloadable resources"; 2483 warn "loading reloadable resources";
2468 init_resources; 2484 init_resources;
2469 2485
2470 warn "leaving sync_job"; 2486 warn "leaving sync_job";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines