Advertisement
Guest User

Untitled

a guest
Oct 8th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public void SaveInventoryCreative(Player p) {
  2. File CreativeInventory = new File(this.getDataFolder() + File.separator + "Inventories" + File.separator + "Inventories_", p.getUniqueId() + File.separator + "creative.yml");
  3. FileConfiguration data = YamlConfiguration.loadConfiguration(CreativeInventory);
  4. for(int x = 0; x < p.getInventory().getSize(); x++) {
  5. data.set(p.getName(), p.getInventory().getContents());
  6. }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement