Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ExampleFile extends InstanceFile {
- public void registerFile() {
- createFile(Example.getPlugin(Example.class), "example.yml");
- setData();
- saveFile();
- }
- public void reloadFile() {
- reloadFile(Example.getPlugin(Example.class), "example.yml");
- }
- @Override
- public void setData() {
- getFileConfiguration().set("spawn.world", "world");
- getFileConfiguration().set("spawn.x", 0.0);
- getFileConfiguration().set("spawn.y", 100);
- getFileConfiguration().set("spawn.z", 0.0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement