name: EmailCollector
main: com.gmail.mrphpfan.EmailCollector
version: 1.0

authors:
    - mrphpfan
description: |
    Allows for the collection of email addresses from minecraft users with their permission
    
softdepend: [Vault]
    
commands:
  registeremail:
    description: 'Register an email'
    permission: EmailCollector.registercommand
    usage: /<command> [email address]
    aliases: [register]
  iagree:
    description: 'Agree to the terms of registering an email'
    permission: EmailCollector.registercommand
    usage: /<command>
    aliases: [agree]
  unsubscribe:
    description: "Unsubscribe from this server's email list'"
    permission: EmailCollector.unsubscribe
    usage: /unsubscribe [playerName (optional)]
  lookupemail:
    description: "Find a player's registered email"
    permission: EmailCollector.lookupemail
    usage: /<command> [playerName]
  saveemails:
    description: "Places a file containing all emails in the plugin's directory"
    permission: EmailCollector.saveemails
    usage: /<command> output_file [emails-only (optional)]
    
permissions:
    EmailCollector.*:
        description: 'Gives all permissions for EmailCollector'
        default: op
        children:
            EmailCollector.registercommand: true
            EmailCollector.unsubscribe: true
            EmailCollector.lookupemail: true
            EmailCollector.listemails: true
    EmailCollector.registercommand:
        description: 'Register an email'
        default: true
    EmailCollector.unsubscribe:
        description: "Unsubscribe from this server's email list"
        default: true
    EmailCollector.lookupemail:
        description: 'Look up an email'
        default: op
    EmailCollector.saveemails:
        description: "Places a file containing all emails in the plugin's directory"
        default: op