title: Java error: Cannot be resolved to a variable
body: <p>I'm trying to create a minecraft plugin with Java, bukkit.</p>
  
  <pre><code>@EventHandler
  public void onItemDrop(PlayerDropItemEvent e) {
      /*
       * Dropping items
       */
      Item item = e.getItemDrop();
      item.setMetadata("NODROP", new FixedMetadataValue(plugin, e.getPlayer()));
      if (!e.getPlayer().hasPermission("nodrop.drop")) {
          e.getItemDrop().remove();
          e.getPlayer().sendMessage(colorizeText(ChatColor.RED + getConfig().getString("drop-message")));
      }
  }
  </code></pre>
  
  <p>The error I'm getting is 'plugin' on</p>
  
  <pre><code>    item.setMetadata("NODROP", new FixedMetadataValue(plugin, e.getPlayer()));
  </code></pre>
  
  <p>which is:</p>
  
  <p>plugin cannot be resolved to a variable</p>
  
  <p>Please help!</p>