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
I really need this plugin to share mail with my friends server but it seems its not loading... http://pastebin.ubuntu.com/6207267/
I remember the old HelpTicket in hMod .. wish this didnt require another API to function though.
Since tickets are not working... Could you add the ability to send mail via the console screen? When I try to use /mail new(or the others) PlayerName Message, it says I entered an invalid command. I would like to use command blocks to send mail, or similar, that sends commands from the console. Same for when I just want to send a message to an offline player when I'm watching the console screen.
Are you going to update this plugin (and DeityAPI)? If not, can I have source?
@Meloncraft
I'm getting the same problem as Meloncraft, but it looks like the messages are staying in the New Mail inbox. Can see them if they type /mail inbox unread.
@Meloncraft
Worked it out, for some reason mail does not show up if a user has the permission Mail.general.* in PEX.
Im sending mail to users, and they are getting a message saying they have mail, but get an inbox empty message when they do /mail inbox
Can you add a delete command? Maybe just an extra boolean in the table so that the mail stays in the database if it needs to be checked by an admin later?
@fr0zenst0rm
You need to install deityapi in order to use mail. Check the required dependencys
Doesn't work:
@Jekotia
Yeah Im not doing a check on that. Forgot to add that. Ill push a new version out this weekend with the fix for that
Despite the fact that all econ values in the config are 0.0, the plugin is returning [SEVERE] errors due to DeityAPI being unable to load econ from Vault.
Only related error at start: 14:33:58 [SEVERE] [DeityAPI] EconAPI Offline: Vault found, but economy source not linked
Error on using /mail inbox:
14:35:13 [WARNING] [DeityAPI] com.imdeity.mail.cmds.mail.MailInboxCommand attempted to access the econ api which is offline (Check startup logs) 14:35:13 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'mail' in plugin Mail v12.08.04 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:878) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:825) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:807) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:583) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at com.imdeity.mail.cmds.mail.MailInboxCommand.onPlayerRunCommand(MailInboxCommand.java:37) at com.imdeity.deityapi.api.DeityCommandHandler.onCommand(DeityCommandHandler.java:118) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 15 more
@andrewvpo
Yeah, the whole reason for this plugin existing is because of the MySQL. When I originally did this plugin there was no other plugin with a MySQL system implemented :(
I really like how you've added MySQL support - if only Essentials could do the same!
@deleted_7554077
I believe that depends on your permission manager not the plugin.
@vanZeben Does the permissions matter if they are capitals or not?
Mail.admin.reload
or
mail.admin.reload
For some plugins they do, do they for Mail too?
Thanks!
@deleted_6264528
Check into DeityAPI and verify that it is loading correctly. Im pretty sure that is where the issue is
I always get this error:
5.07 01:35:46 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) 25.07 01:35:46 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:487) 25.07 01:35:46 [Server] INFO at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:234) 25.07 01:35:46 [Server] INFO at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:419) 25.07 01:35:46 [Server] INFO at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:432) 25.07 01:35:46 [Server] INFO at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:360) 25.07 01:35:46 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:378) 25.07 01:35:46 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383) 25.07 01:35:46 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) 25.07 01:35:46 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 25.07 01:35:46 [Server] INFO at com.imdeity.deityapi.api.DeityPlugin.onEnable(DeityPlugin.java:50) 25.07 01:35:46 [Server] INFO at com.imdeity.mail.MailMain.initDatabase(MailMain.java:52) 25.07 01:35:46 [Server] INFO java.lang.NullPointerException 25.07 01:35:46 [Server] SEVERE Error occurred while enabling Mail v12.07.20.1 (Is it up to date?)
@vanZeben Does the permissions matter if they are capitals or not?
Mail.admin.reload
or
mail.admin.reload
For some plugins they do, do they for Mail too?
Thanks!
LOL, there they are.
Didn't see. Make them bold or something :D
Thanks