/// <summary> /// Clears a metadata value from this player at the specified key. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="plugin">The plugin calling this method.</param> /// <param name="global">Whether the metadata node is global or plugin-local.</param> /// <param name="key">The key.</param> /// <returns>Whether or not a value was removed.</returns> public bool ClearMetadata <T>(Plugin plugin, bool global, string key) { if (plugin == null) { throw new ArgumentNullException("The plugin instance cannot be null!"); } if (global) { return(Metadata.ClearGlobalValue(key)); } else { return(Metadata.ClearLocalValue(plugin, key)); } }