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

Gson support for older builds #13

Open
DownUndaDevGames opened this issue Jul 14, 2016 · 3 comments
Open

Gson support for older builds #13

DownUndaDevGames opened this issue Jul 14, 2016 · 3 comments

Comments

@DownUndaDevGames
Copy link

Hi, I have a Minecraft 1.7.10 server I am developing for and I cannot load this plugin on it. I think it's because of the Minecraft version but if you could add support that would be amazing! Here is the error:

org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder at me.markeh.factionsframework.FactionsFramework.<init>(FactionsFramework.java:60)

@Sataniel98
Copy link

Gson is in the org.bukkit.craftbukkit.libs package in 1.7.10. That being said, you can easily patch your server software to support 1.8.3+ plugins:

  1. Open your craftbukkit.jar with WinRAR or a similar program
  2. Go to org/bukkit/craftbukkit/libs
  3. Copy the com folder
  4. Paste it in the main directory of craftbukkit.jar

@DownUndaDevGames
Copy link
Author

Thanks, it works! :)

Also another thing, how can I add in spaces into my factions command? like for example I want to be able to do this:

/f ability shop
/f ability bal
/f ability top

is there any way to do that?

@markhughes
Copy link
Owner

Sorry for the late response! I'm quite sick at the moment 😷

I could possibly add early detection for Gson and create a fall back to an internal version, I should be supporting every version of Spigot, Bukkit, and MC - so i'll see what I can do!

You mean to show in help? 😃 Just create 3 new command classes, their aliases should be shop, bal, and top!

Then add them as a sub command using the addSubCommand method.

Hope that helped.

@markhughes markhughes changed the title MC 1.7.10 Not working Gson support for older builds Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants