Mail | Config | MySQL | Developer API icon

Mail | Config | MySQL | Developer API -----

A completely editable mail system with config, messages.yml, developer api and sql.



Description
With this plugin you can send mails to your friends. If players take advantage of this feature, you can block them by command.

Features
Dynamic Mail GUI
Every message is editable
Every permission is editable
Developer API

Requirements
SQL Database

Commands
/mail send <player> <message> - Sends a mail to a specific player (mail.send)
/mail ignore <player> - Ignores a specific player (mail.ignore)
/mail unignore <player> - Unignores a specific player (mail.unignore)
/mail list - Opens the mailbox (mail.list)
/mail reload - Reloades the messages.yml (mail.reload)

Messages.yml
Code (Java):
messages :
  prefix : '&7[&9Mail&7]&r'
  must -be -a -player : '%prefix% &cYou must be a player.'
  no -permission : '%prefix% &cYou do not have enough permission.'
  unread -mails : '%prefix% &eYou have &6%unread_mails% &eunread mail(s). Type ' '&6/mail
    list&e'
' to view.'
  command :
    usage :
    - '&7----------------------------'
    - '%prefix% &e/mail send &6<player> <msg>'
    - '%prefix% &e/mail ignore &6<player>'
    - '%prefix% &e/mail unignore &6<player>'
    - '%prefix% &e/mail list'
    - '&7----------------------------'
    successful :
      send : '%prefix% &eYou successfully sent the mail.'
      receive : '%prefix% &eYou reveived a mail from &6%player%&e.'
      ignore : '%prefix% &eYou are now ignoring the player.'
      unignore : '%prefix% &eYou are no longer ignoring the player.'
      reload : '%prefix% &eYou successfully reloaded the messages.yml.'
    error :
      ignore : '%prefix% &cYou cannot send this player a mail.'
      already -ignore : '%prefix% &cYou are already ignoring that player.'
      cannot -ignore -yourself : '%prefix% &cYou cannot ignore yourself.'
      cannot -unignore -yourself : '%prefix% &cYou cannot unignore yourself.'
      not -ignored : '%prefix% &cYou are not ignoring that player.'
      cannot -send -yourself : '%prefix% &cYou cannot send yourself a mail.'
    permission :
      send : mail. send
      ignore : mail. ignore
      unignore : mail. unignore
      reload : mail. reload
      list : mail. list
  gui :
    page -not -exist : '%prefix% &cThis page does not exist.'
    previous -page : '&7Previous Page'
    next -page : '&7Next Page'
    current -page : '&7Page %page%/%pages%'
    mailbox -empty : '&cYour mailbox is empty!'
    item :
      name : '&9Mail'
      lore :
      - '&eFrom: &6%player%'
      - '&eMessage: &6%msg%'
      - '&eDate: &6%date%'
      unread -lore :
      - '&eFrom: &6%player%'
      - '&eMessage: &6%msg%'
      - '&eDate: &6%date%'
      - '&7Click to mark as read'
    mark -as -read : '%prefix% &eYou have marked the mail as read.'
 
Screenshots:
GUI.png

Developer API

Code (Java):
    public void example ( ) {
        MailAPI. sendMail (target, author, message, timestamp ) ;
   
        List <String > getMailIds = MailAPI. getMailIds (uuid ) ;
        List <String > getUnreadMailIds = MailAPI. getUnreadMailIds (uuid ) ;
        List <String > getIgnoreList = MailAPI. getIgnoreList (uuid )
   
        String author = MailAPI. getAuthor (uuid, id ) ;
        String message = MailAPI. getMessage (uuid, id ) ;
        long timestamp = MailAPI. getTimestamp (uuid, id ) ;
    }

    @EventHandler
    public void handleSendMail (SendMailEvent event ) {
        // do stuff here
    }
 
    @EventHandler
    public void handleIgnorePlayer (IgnorePlayerEvent event ) {
        // do stuff here
    }
 
    @EventHandler
    public void handleUnignorePlayer (UnignorePlayerEvent event ) {
        // do stuff here
    }
I would appreciate a rating :)
Resource Information
Author:
----------
Total Downloads: 86
First Release: Jul 18, 2021
Last Update: Jul 18, 2021
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings