Simple-Mail
SimpleMail
Description:I've been wanting to write a small and simple mail plugin for a while now, SimpleMail is the beginnings of that plugin.
SimpleMail uses an SQLite database to store mailbox data, allowing users to leave messages for each other whether offline or not. Users with admin permissions are able to view all active mailboxes, and clear them if necessary. Messages that have been read will expire after so may day, configurable in config.yml. Suggestions/contributions more than welcome.
Installation:
1. Download the .jar
2. Place the .jar in your plugins directory
3. Restart the server Configuration:
• MaxMailboxSize - Max messages allowed per mailbox
• ShowInboxOnJoin - Show total messages in inbox on join
• MailExpiration - Number of days before a read message expires (and is deleted)
Commands:
• /Mail - Main Menu
• /inbox - Check your inbox
• /outbox - Check your outbox
• /sendmail <player> <message> - Send mail
• /readmail <id> - Read one of your messages
• /delmail <id> - Delete on of your messages
Admin Commands
• /mailboxes - Display Active Mailboxes
• /clearmailbox - Clear an Active Mailbox
Permissions:
• simplemail.inbox - Have and access a mailbox
• simplemail.outbox - Access outbox
• simplemail.sendmail - Send mail
• simplemail.admin - View/Use admin commands
To Do:
•
•
0.3.8
- Added: Outbox to Commands Menu (/mail)
- Bugfix: Cleaned up mail expiration
- Bugfix: Some users unable to read/delete mail, issues with case detection resolved
0.3.7
- Added: Outbox
- BugFix: [Major] issues with names / display-names.
- BugFix: [Major] Error on player login.
0.3.6
- Added: Configurable delay for new mail notification display
- Bugfix: update inbox to get mail for player's name, and not player's display name.
0.3.5
- 3 second delay on New Message notification upon playerjoin
0.3
- Added configurable message expirations
- Added purge command for deleting expired mail
- Removed permission SimpleMail.clear
- Updated inbox announcement on join, now only reports new messages
0.2
- Code restructure
- Changed Database access method.
0.1
- Initial Creation
Hi,
I can send a mail to a "non existent" player.
There should be a message for that like "player does not exist" or even an admin command to purge those eMails.
It seems to somehow conflict with Banhammer. Im getting this error when having Banhammer and SimpleMail installed at the same time. I don't know which plugin page I should post this on so Im doing it on both.
is it possible to have a command that send a message to everyone on the server? and also to allow for longer messages?
Could you add a "circular mail" to inform every user? It is possible to solve this with the motd, but in this way, they are able to delete the mail and don't see it at next login. ;)
Is there a option to send a message to certain groups or all groups?
Thanks
Notownz
@marcopolo84
this already occurs.
You should add a feature that when a player sends a message, the other player receiving the message should be notified.
You have stolen my Plugin Name :DD
@Odiumxxx
Yeah now it works, thanks
@lochlain000
Looks like an issue with case detection.
Fixed in 0.3.8
Hi, a problem, we cannot remove old mails from the mail box with the command /delmail id as it says that is not your message to delete. Which really makes it hard to use the plugin as increasing mailbox size is only a stopgap.
ver0.3.7 thanks
The mail expiration looks nice, is there a chance of a 'mail archive' command? the command would set a flag or something on that mail so that the expiration system can't delete the mail. Because sometimes you might have an important mail that you want to keep.
Also, perhaps a permission that allows mail belonging to people who have the perm set on them to not go through the expiration system.
That way, mods and admin mail never expires, but player mail does.
Does this work on 1.3.1?
@Odiumxxx
It's fixed now, thanks so much!
@RobinR102
Same here
@RobinR102
Very odd, try as I might I'm unable to replicate this error.
I'll continue trying under different environments and see what we can do about it.
Hello I got pretty much the same error as TE5LA. Whenever someone receives a new mail, upon login they get the error: "[SimpleMail] Error! java.lang.IllegalArgumentException Plugin cannot be null" The mail is in the inbox though and can be read without any problem, We are using v0.3.6
@Odiumxxx
Yep, I'm using DispNameChanger, but it does rewrite the command to say the full username, and it doesn't touch commands with usernames that don't have a nickname.
But anywho, I'll give this bugfix a go, and get back to you soon to notify you if it works or not. I'm currently on vacation.
@Swords761
Are you perhaps using a plugin which alters a players displayname somehow?\\
if so, 0.3.6 should fix the issue.
@Odiumxxx
The same problem is happening to me, I can send mail and the recipient sees they got new mail, but when you do /inbox it's empty. I do see the entries in the SQLite database file, though. Just can't read anything from anyone in-game. Spelt name correctly, letter to letter, with caps and without caps for case-sensitivity.