Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline getPlayer #486

Open
ghost opened this issue May 11, 2016 · 9 comments
Open

Offline getPlayer #486

ghost opened this issue May 11, 2016 · 9 comments

Comments

@ghost
Copy link

ghost commented May 11, 2016

Hi,
First I'm french so sorry if I'd make any mistake

So I use JSONAPI for Spigot 1.9.2 with the non-official version 5.7 and when I use the getPlayer call with a offline it make a bug :
http://dzaok.tk/error.txt

So I'd understood it doesn't work just I want to solve it but what decencies I need for eclipse ?
Thanks for further answers 👍

@electronicboy
Copy link

Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_8_R3/World
That version is compiled for 1.8.8, and isn't an official version.

The plugin also compiles cleanly with Maven without any issues for me. See the complete_build script

@ghost
Copy link
Author

ghost commented May 11, 2016

Thanks so it work in spigot 1.9.2 ? just how to use complete_build script ? yes I'm a noob in Eclipse but i'm good in web php / css / html ;)

@electronicboy
Copy link

The current version on git should work fine for 1.9 R1 (1.9-1.9.2)

You'll have to use the script from a bash interpreter or manually run the commands on a command line that has maven installed; Eclipse should have maven support, However I don't use eclipse so couldn't provide instructions for doing it from there, however the variables you'd need to setup are in that shell file.

@ghost
Copy link
Author

ghost commented May 11, 2016

I've installed maven but how to execute the script please ?

@electronicboy
Copy link

I already said, You'll need the bash interpreter to run the script. Or, Just run the mvn line from inside the script manually.

@ghost
Copy link
Author

ghost commented May 11, 2016

mvn clean install $@ -DmcPackage=v1_9_R1 -DspigotVersion=1.9-R0.1-SNAPSHOT [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.alecgorge.minecraft.jsonapi:JSONAPI:jar:BLEEDING-mc1.9-R0.1-SNAPSHOT [WARNING] 'version' contains an expression but should be a constant. @ com.alecg orge.minecraft.jsonapi:JSONAPI:${jsonapiVersion}-mc${spigotVersion}, C:\Users\Ga bin\Downloads\jsonapi-master\pom.xml, line 7, column 11 [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] The expression ${version} is deprecated. Please use ${project.version} instead. [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten t he stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support buildin g such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building JSONAPI BLEEDING-mc1.9-R0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.714 s [INFO] Finished at: 2016-05-11T23:10:42+02:00 [INFO] Final Memory: 6M/46M [INFO] ------------------------------------------------------------------------ [ERROR] Unknown lifecycle phase "$@". You must specify a valid lifecycle phase o r a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artif act-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, ini tialize, generate-sources, process-sources, generate-resources, process-resource s, compile, process-classes, generate-test-sources, process-test-sources, genera te-test-resources, process-test-resources, test-compile, process-test-classes, t est, prepare-package, package, pre-integration-test, integration-test, post-inte gration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, s ite, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhase NotFoundException

@ghost
Copy link
Author

ghost commented May 11, 2016

I've the same error with the script

@electronicboy
Copy link

Script requires a bash interpreter.
Try removing the $@ if you're not using bash.

@ghost
Copy link
Author

ghost commented May 11, 2016

Thanks its compiling I'm waiting the end thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant