How to read save/read ItemMeta to config

Discussion in 'Plugin Development' started by william9518, Jan 11, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    william9518

    here's what I have:
    Code:
     String id = args[1];
                  String path = ((Player) sender).getItemInHand().toString();
                  String metaPath = ((Player) sender).getItemInHand().getItemMeta().toString();
    plugin.getConfig().set("save." + id, path);
                      plugin.getConfig().set("save." + id + ".", metaPath);
                      sender.sendMessage(ChatColor.RED + "[NBTTagger] " + ChatColor.GOLD + "Item saved");
                      return true;
    I can set it just fine, but how can I do
    item.setItemMeta(config.getmeta)
    ? thre is no method called config.getItemMeta, altho there is config.getItemStack
     
Thread Status:
Not open for further replies.

Share This Page