… | |
… | |
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 | |
|
|
1061 | Kicks a player out of the game. This destroys the connection. |
|
|
1062 | |
|
|
1063 | =cut |
|
|
1064 | |
|
|
1065 | sub 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 | |
1061 | Returns am arrayref of all valid playernames in the system, can take a |
1075 | Returns am arrayref of all valid playernames in the system, can take a |