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

Problem importing worlds using API #202

Open
MurrenMods opened this issue Nov 4, 2022 · 0 comments
Open

Problem importing worlds using API #202

MurrenMods opened this issue Nov 4, 2022 · 0 comments

Comments

@MurrenMods
Copy link

MurrenMods commented Nov 4, 2022

I might be missing something simple, so dont flame me too much:

When trying to import worlds using
p.importWorld(File, Name, Loader)
my plugin throws the error 'loader cannot be null'.
This refers to the Loader in that function, which I earlier defined as

static SlimePlugin p = (SlimePlugin) Bukkit.getPluginManager().getPlugin("SlimeWorldManager");
static SlimeLoader l = p.getLoader("mysql");

Do I need to install anything? Like, mysql software or something similar? My code doesn't throw any other errors, it just cant make the loader anything different than null.

EDIT: Solved, i was too stupid to catch on what the data source actually meant. File System works amazing, and i can convert my worlds now. Thanks for this amazing plugin!

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