Skip to content

Bugs and suggestions #41

@XtoManuel

Description

@XtoManuel

[BUGS]

We are using this repository for a Minecraft server and there are several sections that do not work well for us:

  • javaServer.stop(): void Does not stop the server correctly. We are currently using javaServer.send('stop') to stop the server properly.
  • javaServer.on('stop', () => void) It is not executed when the server is stopped with javaServer.stop() or with javaServer.send('stop')
  • javaServer.on('login', (event: {player: string; ip: string;}) => void) It is not executed when a user logs in to the server
  • javaServer.on('logout', (event: {player: string; reason: string;}) => void) Does not run when a user logs out of the server

[SUGGESTIONS]

  • Add to javaServer.on('achievement', (event: {player: string; achievement: string;}) => void) the description of the achievement
  • Add javaServer.on('death', (event: {player: string; reason: string;}) => void) as an event to be able to log in when a player dies and the reason
  • Add javaServer.restart(): void to be able to restart the server in case of internal problems. Something similar to doing javaServer.stop(): void and javaServer.start(): void, but in less code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions