Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void SaveInventoryCreative(Player p) {
- File CreativeInventory = new File(this.getDataFolder() + File.separator + "Inventories" + File.separator + "Inventories_", p.getUniqueId() + File.separator + "creative.yml");
- FileConfiguration data = YamlConfiguration.loadConfiguration(CreativeInventory);
- for(int x = 0; x < p.getInventory().getSize(); x++) {
- data.set(p.getName(), p.getInventory().getContents());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement