Skip to content

Error when registering expansions #515

@NicBOMB

Description

@NicBOMB

Bug Report

Issue

Expansions are not successfully registered after downloading using papi ecloud download <expansion>.

Expected behaviour

PAPI should download, prompt to reload, and register the expansion after reloading.

Actual behaviour

PAPI downloads the expansion, prompts to reload, but throws null pointer exceptions when reloading.
https://paste.helpch.at/redubilofa.bash

How to reproduce

  1. Download expansion using papi ecloud download server
  2. Successfully downloaded expansion Server [2.4.0] to file: Expansion-server.jar Make sure to type /papi reload to enable your new expansion!
  3. Reload using papi reload
  4. See error

/papi dump output

When I've been downloading expansions all names have been "Expansion-[lowercase plugin name]". Reloading PAPI does not register the newly downloaded expansions automatically. After looking at other issues and dumps, I realized that my expansion for server was called "Expansion-server.jar" in my dump, but "Expansion-Server.jar" in another user's dump. I redownloaded server from the ecloud and console still reported
Successfully downloaded expansion Server [2.4.0] to file: Expansion-server.jar Make sure to type /papi reload to enable your new expansion!
First Dump https://paste.helpch.at/obapozepuf
After renaming the downloaded file to "Expansion-Server.jar" and then reloading PAPI, the expansion was successfully registered and recorded in a subsequent dump. https://paste.helpch.at/wesawaseto

Is there a list of the names or syntax PAPI looks for? papi ecloud list all? Some don't register using their ecloud name either. Example: "mcMMO" as seen in papi ecloud list all isn't registered when named "Expansion-mcmmo.jar" or "Expansion-mcMMO.jar" but is registered when named "Expansion-McMMO.jar".
I cannot get ListPlayers and SpeedPerSec to register. All of the others I have renamed and were successfully registered.
https://paste.helpch.at/olopujunoy
If I remove ListPlayers and SpeedPerSec the above null pointer exception also disappears.
https://paste.helpch.at/ruhefidomo
I'd really like to be able to just download, reload, and move on to implementation. The plugin should get the placeholders for me without needing me to double check the files are named correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Issue (Expansion)Issue caused by one or more expansions not working properly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions