Sueta

Martoph's Mail [Citizens Compatibility]

1.0.3-SNAPSHOT

Mail Delivery

·Plugin


Unique mail plugin! Mail that sends items, messages, and Citizens compatibility.

Commands:
/mmail: Opens mail inventory.
/endmessage: Ends a message when completed typing in chat

Citizens

/npc sel <npc>
/trait mailer


en_US.lang
§ can be replaced with & if desired.

Lang file

mail-menu-inv=§aMail
mail-received=§aMail received from {PLAYER}!
sure-to-delete=&4Are you sure you want to delete? R-Click again. L-Click to read.
long-message=§4Message too long!
usage=§4Usage: /{COMMAND} {PARAMS}
enter-message=§aSending message to: {PLAYER}. Enter message in chat. You may use multiple messages. Use /endmessage to continue.
same-player=§4Cannot send to yourself!
message-entered=§aAdded message: §e{MESSAGE}
no-message-pending=§4No message to end!
date-format=yyyy-MM-dd' @ 'HH:mm:ss
no-perms=§4Insufficient permission.
mail-sent=§aMail sent!
deleted=§4Deleted.
no-message-to-end=§4No message to end!
full-inv=§4Full inventory!
add-items-inv=§aSend items with your message
cancelled-delivery=§4Cancelled delivery.
invalid-player=§4Player is not online or doesn't exist.

mail.json
Stores all mail across the server. This is in a json format. If you ever feel the need to change mail, the server must be OFF. I suggest https://jsoneditoronline.org/ to manage json files.

Permissions
mmail.mail: Permission for /mmail command.
mmail.sendtoself: Permission to send mail to yourself. (Used mostly for debugging purposes)

Screenshots

Screenshots

upload_2018-4-3_10-18-51.png
upload_2018-4-3_10-19-21.png
upload_2018-4-3_10-19-46.png
upload_2018-4-3_10-22-16.png


Extra Info:

  • The source code is accepting issues, please put issues there! Not in the comments or reviews section.
  • This resource may be compatible with older versions. Let me know if it works!
  • Books are used to store messages. Books will automatically disappear once interacted with in the inventory.

Similar projects

Plugin →