… | |
… | |
299 | Invoked when the given player is being kicked, before the kick is |
299 | Invoked when the given player is being kicked, before the kick is |
300 | executed. |
300 | executed. |
301 | |
301 | |
302 | =head3 load (player -- ) |
302 | =head3 load (player -- ) |
303 | |
303 | |
304 | Invoked whenever a player has been loaded from disk, but before |
304 | Invoked whenever after a player has been loaded from disk, but before |
305 | actual login. |
305 | actual activation/login. |
306 | |
306 | |
307 | =head3 save (player -- ) |
307 | =head3 save (player -- ) |
308 | |
308 | |
309 | Invoked just before a player gets serialised. |
309 | Invoked just before a player gets serialised. |
310 | |
310 | |
… | |
… | |
340 | |
340 | |
341 | Invoked when a player entered a new region. Cannot be overriden. |
341 | Invoked when a player entered a new region. Cannot be overriden. |
342 | |
342 | |
343 | =head3 command (player command args -- time) |
343 | =head3 command (player command args -- time) |
344 | |
344 | |
345 | Execute a user command send by the client. Programmable plug-ins usually |
345 | Execute a user command sent by the client - this is invoked for I<all> |
346 | handle this event internally. |
346 | command,s so should not normally be hooked. |
|
|
347 | |
|
|
348 | =head3 unknown_command (player command args -- time) |
|
|
349 | |
|
|
350 | Execute a user command sent by the client that isn't known to the |
|
|
351 | server. Programmable plug-ins usually handle this event internally. |
347 | |
352 | |
348 | =head3 extcmd (player string) |
353 | =head3 extcmd (player string) |
349 | |
354 | |
350 | Invoked whenever a client issues the C<extcmd> protocol command. |
355 | Invoked whenever a client issues the C<extcmd> protocol command. |
351 | Programmable plug-ins usually handle this event internally. |
356 | Programmable plug-ins usually handle this event internally. |
… | |
… | |
379 | =head3 shout (player message --) |
384 | =head3 shout (player message --) |
380 | |
385 | |
381 | Invoked whenever the player uses the B<say>, B<chat> or B<shout> command, |
386 | Invoked whenever the player uses the B<say>, B<chat> or B<shout> command, |
382 | before it gets processed. |
387 | before it gets processed. |
383 | |
388 | |
|
|
389 | =head3 build (player builder map x y --) |
|
|
390 | |
|
|
391 | Players tries to build using C<builder> at (map+x+y). Is invoked after the |
|
|
392 | usual sanity checks, so the coordinates are valid. |
|
|
393 | |
384 | |
394 | |
385 | =head2 MAP EVENTS |
395 | =head2 MAP EVENTS |
386 | |
396 | |
387 | These events are generally dependent on a map and thus all have a map |
397 | These events are generally dependent on a map and thus all have a map |
388 | as first argument. |
398 | as first argument. |
… | |
… | |
434 | =head3 connect (client -- ) |
444 | =head3 connect (client -- ) |
435 | |
445 | |
436 | Called as soon as a new connection to the server is established. Should |
446 | Called as soon as a new connection to the server is established. Should |
437 | not be overriden. |
447 | not be overriden. |
438 | |
448 | |
|
|
449 | =head3 version (client string -- ) |
|
|
450 | |
|
|
451 | Called as soon as the version command from the client is received |
|
|
452 | (normally the very first command sent). |
|
|
453 | |
439 | =head3 setup (client string -- ) |
454 | =head3 setup (client string -- ) |
440 | |
455 | |
441 | Client sent the setup command to negotiate parameters. Handling is |
456 | Client sent the setup command to negotiate parameters. Handling is |
442 | mandatory and done by F<login.ext>. |
457 | mandatory and done by F<login.ext>. |
443 | |
458 | |
… | |
… | |
455 | |
470 | |
456 | Like C<extcmd>, but can be called before a player has logged in. |
471 | Like C<extcmd>, but can be called before a player has logged in. |
457 | |
472 | |
458 | Programmable plug-ins usually handle this event internally. |
473 | Programmable plug-ins usually handle this event internally. |
459 | |
474 | |
|
|
475 | =head3 client_destroy (client -- ) |
|
|
476 | |
|
|
477 | Invoked when the client gets destroyed. |
|
|
478 | |
|
|
479 | |