Advertisement
Guest User

Untitled

a guest
Sep 6th, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. public class ExampleFile extends InstanceFile {
  2.  
  3.     public void registerFile() {
  4.         createFile(Example.getPlugin(Example.class), "example.yml");
  5.         setData();
  6.         saveFile();
  7.     }
  8.  
  9.     public void reloadFile() {
  10.         reloadFile(Example.getPlugin(Example.class), "example.yml");
  11.     }
  12.  
  13.     @Override
  14.     public void setData() {
  15.         getFileConfiguration().set("spawn.world", "world");
  16.         getFileConfiguration().set("spawn.x", 0.0);
  17.         getFileConfiguration().set("spawn.y", 100);
  18.         getFileConfiguration().set("spawn.z", 0.0);
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement