What is Mail?
This plugin was originally based off of the functionality found in Minemail. This plugin is a fully-featured mailing system that allows you to send mail to any player. All data is backed up and stored via MySQL for easy access and for organisation. Almost everything is fully customizable and documentation on this can be found here
Features
- DeityAPI integration
- Econ support (If values are configured to 0, this will be disabled)
- Mail that is close to another sent will be disregarded. Check v12.07.19 change-log
- MySQL
- Permissions/SuperPerms support
- Locally referenced mail id's
- Mail to offline players
- Notifications when new mail arrives
- Language.yml to change the plugin to suit what your server needs
Requirements
- DeityAPI
- MySQL (no flatfile support atm)
- Permissions (SuperPerms supported)
Commands
- /mail reload: Reloads the config and all mail (requires Mail.admin.reload)
- /mail convert <old-table-name>: Converts the old mail data to the new format (requires Mail.admin.convert)
- /mail inbox <read|unread>: Checks your inbox (requires Mail.general.inbox)
- /mail read [index]: Opens the specified mail (requires Mail.general.read)
- /mail [write/create/new] [receiver] [message]: Sends a new mail (requires Mail.general.write)
Set up
- Place Mail.jar within your plugins folder
- Profit??? Optional: you can change almost every user message and formatting via the language.yml file
Wow, your formatting up there is totally screwed.
Can you please update this plugin?
@Benny95346 Get a MySQL database like WAMP or XAMPP for Windows.
Also check YouTube name "iftygamerz" thats me. I have some tutorials on there. PM me if you have any questions.
I keep getting the message:
[Mail]Config is not set up correctly. Commands will not work until this is fixed
I figure it has to do with no SQLite (?) server set up, but I have been unsuccessful in finding a tutorial that works for me. Could anyone point me to one?
I get this error when someone trys to use /mail
http://pastebin.com/ARBiYYEp
A minor bug: Whenever I type '/mail' with an empty mailbox, it first prints "[Mail] Your inbox is empty!" followed by "[Mail] Invalid Syntax, use '/mail ?' for help." Which makes no sense, as my syntax was correct.
Seeing as I don't need to send mail to players who haven't played on my server, is it possible to do a check against the recipient's name before sending the mail? Perhaps take a list of players as they sign on for the first time (or at least the first time since the plugin started running) then match up the name typed in the '/mail write' command with the name in the list. I suppose this would also call for the inclusion of a '/mail force'-style command to force sending of a letter to a username not on the list so that when that user signs into your server for the first time, voila they have mail.
Another plus of having a list of players to match against would be that you could then match on partial names, so that if I wanted to send mail to username "1234567890ABCDEF" and just wrote '/mail write 12345 blah' and only 1 name matches '12345' for the first 5 characters of the username, the mail gets sent to them.
Also, a command like '/mail recall' would be nice, for un-sending the last sent mail.
Likewise with this one, any way to get the date and time displayed when mail was received? Thanks!
sqlite support would be nice, since hooking this with SQL caused a bit of problems.
What do You think about adding sqlite support?
Using CB 1.2.5 build 2133, Mail 1.2, HepTicket 1.6, AuthMe 2.6.5
When enabling sessions for AuthMe and trying to join as "PlayeR" when a player called "Player" is already playing AuthMe says that session information doesn't match and doesn't let me connect. This is when Mail gives this error.
2012-04-02 16:57:16 [SEVERE] Could not pass event PlayerJoinEvent to Mail
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132)
at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129)
at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:94)
at net.minecraft.server.Packet1Login.handle(SourceFile:68)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:48)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at com.imdeity.mail.sql.MailSQL.sendUnreadCount(MailSQL.java:179)
at com.imdeity.mail.event.MailPlayerListener.playerJoin(MailPlayerListener.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 12 more
Hope you can fix this.
German translated 'language.yml':
Download
Have fun!
Can there be mail boxes like on signs that you have to right click to receive your mail
would you be making a web plugin for this. or should i?
@zybey
its still working for me ;)
@pocketkings719 i don't think so, but its still working fine :D ^^
Is this being updated to 1.2.3?
MySQL Configuration not working for me (1.2.3; #2060). Update?
Hey awesome plugin,
You think it's possible to add a "bulk mail" feature where I can send mail to multiple players at the same time? Would really help with server events and such, because typing or copy & pasting the same message 20 times to 20 different players is kind of a hassle.
Does not work with 1.2 yet. Hoping for an update - thanks :)
Update to R5?