What is Mail? Mail allows players to send messages to each other whether the target player is online or offline. The code was initially based on Minemail but has been modified to be easier to use and more importantly, uses the mySQL database for storage instead of SQLite. It also allows for players to hold on to read messages (and delete ones they've already read) so they can re-read it later. Download at BukkitDev! Features: Mail Online & Offline players Hold onto read mail & Delete unwanted mails MySQL database for storage Permissions support Notifications when new mail arrives Compact and efficient Requirements: MySQL Permissions Commands: /mail - shows inbox with relative message id's /mail read # - Shows full message where # is the relative id /mail write [player] [message] - Send a message to a player /mail delete [#/*] - deletes the specific message OR if * is used it will remove all mail (This command doesn't remove the mail from the database only the players view) Permission Nodes: "mail.read" - to read messages "mail.delete" - to delete messages "mail.write" - to write messages Installation: 1) Place Mail.jar within your plugins folder 2) Config will generate when the plugin loads (also included in the zip) 3) Configure the settings in the config.yml to your needs (ie: database information) Changelog: Version 0.6.1 Fixed bug in /mail delete Version 0.6 Fixed disabling of plugin if malformed data Changelog History (Move your mouse to reveal the content) Changelog History (open) Changelog History (close) === Version: 0.2 === Original Upload === Version: 0.3 === Fix for various grammatical errors as per request Update to fix "SQLException: No value specified for parameter 1" bug Edited /mail command to use /mail write or /mail send === Version: 0.4 === FIX: Arrayindex out of bounds on command "/mail read" Update to delete all mail if requested with /mail d * Version 0.5 Will disable Plugin if it isn't setup correctly (ie: no database setup) Download at BukkitDev!
Works great, but it throws an exception when you type /mail delete without an ID. I know /mail delete isn't supposed to be a command without ID or *, but still, you should catch that error.
Will look into this. Thanks for reporting. Bug has been fixed. Fixed file available for download on Bukkitdev. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
this was a feature i had considered implementing awhile back as well as /mail d 1,2,3 for deleting more then one. After Deity finish's the rewrite of the reading your mail, ill add these in i think.
If you have a legitimate error or bug to post please respond so we can efficiently solve the source of your bug, otherwise dont be an ass. Nobody likes idiots who attempt to get attention.
Have you accurately setup your MySQL database correctly in the auto-generate config entitled "config.yml"?
You may also want to try re-downloading the plugin. It's possible that your download got corrupted. We use this plugin on our (very active) server and it is working properly.
You're most likely getting this error because you did not setup your mySQL database settings in config.yml in the Mail folder (you will see an exception when the server starts up if Mail isn't able to connect to your database). The next release we will be making will send a message to you in game telling you to setup the database settings instead of giving this error message.
Please post a sample config. Does the database create itself? How do we do this? Where is the MySQL database? I know LWC and MyWarp comes already configured, even though they are using sqlite.
A sample config file is generated automatically the first time the plugin runs (it will be in your plugins folder under "Mail"). The mySQL database will need to be installed and on your server already. You simply need to change the config file to have the correct username/password etc for that database so the Mail plugin can connect to it.
Why hello there ImDeity good to see you using your skills but before MySQL could you add a SQLite or FlatFile Database i don't want to much stress on my WAMP Server.
If you already have mySQL installed and running, this will not add any significant load to your server. In fact, if you have mySQL installed, this will actually be faster and more efficient than using a flat-file/SQLite based system, especially when you have more people online. I doubt we will be adding SQLite support in the near future as mySQL is what we use and test this plugin with on our own server.
I Understand but you see i have over 30 Operations on MySQL server including the website it just a sudgestion and should you add more options there aren't enough mabey Code: plugin-tag: '[Mail]' iconomy: 'false' iconomy-cost: 10 MySQL: Type: 'SQlite' Port: 3306 user: name pass: pass host: localhost just a suggestion i edited your plugin to use the top 3 options but im working on a SQlite as i perfer it
Great addon. For those unsure of what to do; create a user in your database for mail create the mail database (call it whatever you want) give the user you created access to the new database change config.yml in plugins/mail to point to the right server/port, with the right username/password You don't need to make tables or anything else, the addon does that.
Hey ! Cool, that's the plugin I was looking for, MineMail but with MySQL ! Great job Well you use Permissions, but could you add a new command (with Permissions support) which allow OP or users with the permission to send a message to everyone or a group of players ? It would be really useful for admins and modos Thanks.
The tag is simple enough, however when it was made, Mail seemed general enough to all servers. As for the iconomy i doubt we will be adding that to the current system on an "official" release, as mail is only a way to extend chat between users and you dont charge / msg, however feel free to maintain your own repo of it, The source is released. Lastly, As Deity said we wont be adding support for SQLite "officially" again as there isn't a great demand for it, and MySQL works better in general. However once again you can private repo that as well if you wish, One suggestion to your edited config file. You use the key MySQL and then have a sub of Type with value SQLite? Why not change that to Database: instead of MySQL -_- Not a bad idea at all, Im sure we can add something like this in. The plugin will be going through a rework, as the current caching system doesnt seem to scale very well and is just plain annoying. So once that is done, we can check this out.
if you would learn to read previous posts before posting you would see several comments about "As Deity said we wont be adding support for SQLite"
with most of the things your say i am getting the since this plugin wont get very far as it has very very very limited config and not very helpful for most things, if you want this plugin to progress take in some posts like "Add SQlite" maybe add Register as a Economy so this plugin will get more public , just to let you know please take my advice into action!!!
The reason that some suggestions are not being taken and put into action is because those suggestions only apply to a small percentage of people, not too many people use SQLite and for the majority its MySQL. Secondly features such as iConomy support and Register and features like that, those are not being put into it because this plugin has no need to do more then what its doing. As stated it's a mail plugin for a simple mailing system that's backed by MySQL. It has as many features as it was intended to have. Don't get me wrong, i would love to have many many many people using this. However it was more released for people who could use this system. It wasn't and isn't intended to be a feature rich plugin that's going to change drastically from update to update. There are suggestions that i think are great and may get implemented in the future, however the plugin will not change its official functionality to support 5% of the servers. Also the source is released, if you know java i fully support you going ahead and modifying the code to support what you desire. If you can make it compatible without disrupting the current system, make a pull request on GitHub and we can talk about working it into the plugin.