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

Development Error & Deprecation #212

Closed
ghost opened this issue Feb 8, 2017 · 3 comments
Closed

Development Error & Deprecation #212

ghost opened this issue Feb 8, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 8, 2017

Hi, so first, im making a Plugin with MinigamesLib.

My first Problem is that most of the functions are deprecated, so i don't know what of these i should use :/

The second is, the Game throws me an error everytime i use an Command that uses the config.yml (it doesnt get generated)

public void onEnable(){
	api = MinigamesAPI.setupAPI(this, "Paintball", IArena.class);
}
@Emalton
Copy link

Emalton commented Feb 11, 2017

Having the same issue.

@mepeisen
Copy link
Collaborator

The deprecated functions can be used. They won't be replaced in 1.14.15. But notice the javadocs. Some of the methods are directly returning the underlying lists and you should not manipulate the lists because this may cause bugs.

The deprecations were set because I started refactoring and later on I decided to completly rewrite the system.

There will be a migration guide for migrating games from 1.X to upcoming version 2.X

@mepeisen
Copy link
Collaborator

For the second error it is fixed in latest snapshot. You may manually work around the problem by using the other setupAPI method (this one using tons of parameters). Or directly invoke the following in your onEnable:
new DefaultConfig(this, false); // force initialization of config.yml

the latest snapshot can be found at http://www.minigameslib.de/downloads_en.php

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

2 participants