… | |
… | |
384 | =head3 shout (player message --) |
384 | =head3 shout (player message --) |
385 | |
385 | |
386 | 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, |
387 | before it gets processed. |
387 | before it gets processed. |
388 | |
388 | |
389 | =head3 build (player builder map x y --) |
389 | =head3 build (player builder map x y checkok --) |
390 | |
390 | |
391 | Players tries to build using C<builder> at (map+x+y). Is invoked after the |
391 | Players tries to build using C<builder> at (map+x+y). Is invoked after |
392 | usual sanity checks, so the coordinates are valid. |
392 | the usual map sanity checks, so the coordinates are valid. The boolean |
|
|
393 | C<checkok> is true only if the build code thinks it is "ok" to build at |
|
|
394 | that space, and normally you should only build when it is true. |
393 | |
395 | |
394 | |
396 | |
395 | =head2 MAP EVENTS |
397 | =head2 MAP EVENTS |
396 | |
398 | |
397 | These events are generally dependent on a map and thus all have a map |
399 | These events are generally dependent on a map and thus all have a map |
… | |
… | |
441 | handled asynchronously as soon as the command reaches the server, even when |
443 | handled asynchronously as soon as the command reaches the server, even when |
442 | the player hasn't logged in yet (meaning there is no player yet). |
444 | the player hasn't logged in yet (meaning there is no player yet). |
443 | |
445 | |
444 | =head3 connect (client -- ) |
446 | =head3 connect (client -- ) |
445 | |
447 | |
446 | Called as soon as a new connection to the server is established. Should |
448 | Called as soon as a new connection to the server is established and the |
447 | not be overriden. |
449 | socket has been configured. |
|
|
450 | |
|
|
451 | =head3 version (client string -- ) |
|
|
452 | |
|
|
453 | Called as soon as the version command from the client is received |
|
|
454 | (normally the very first command sent). |
448 | |
455 | |
449 | =head3 setup (client string -- ) |
456 | =head3 setup (client string -- ) |
450 | |
457 | |
451 | Client sent the setup command to negotiate parameters. Handling is |
458 | Client sent the setup command to negotiate parameters. Handling is |
452 | mandatory and done by F<login.ext>. |
459 | mandatory and done by F<login.ext>. |