Courier
Courier
A player to player mail system for Bukkit Minecraft servers
by defxor
Allows creation of text note items and sending of letters to players no matter if they're online or offline. The letters are delivered by postmen at intervals specified in the config file, and letters can be stored and handled as any other item for later reading. We wanted something that not only allowed us to pass notes to each other, but also felt like it was part of the regular Minecraft environment.
We believe we succeeded.
- - -=< Latest version >=-=< Videos >=-=< Tickets >=-=< Forum >=-=< Source >=- - -
Usage
- /letter [text]
- Creates a Courier Letter with the supplied text. Hold the Letter in your hands and write /letter [text] again to add more text to the Letter. Use &nl or \n to insert newlines. Multiple page Letters are supported, use right-click and left-click to turn the page.
- /post [playername]
- Sends the Letter held in your hands to another player, name verified to be a player on the server. Depending on the config, the received Letter will be privacy-locked to that player (can be unlocked by simply adding text to it with /letter).
- /courier fees
- Lists the fees, if any, that apply for sending mail or creating letters
- /courier unread
- Requests re-delivery of all unread mail, even if they have been delivered to you before. Courier knows the difference between a mail having been delivered and actually read, and this is meant to be used in the cases where you've managed to misplace the Letter without having read it first.
- /postman
- Intended for OPs only, if postman delivery happens seldom and you want to force one to appear. NOT NEEDED in actual gameplay.
To receive messages, simply poke the friendly postman when he appears or right-click him to receive the message directly into your hands or inventory.
The strings "%loc" and "%pos" will be replaced with the current X,Y,Z position in any Letters written, if surrounded by spaces.
Permissions
Quick version: Give your players courier.write, courier.send and courier.list
Long version:
- courier.write
- Allows players to create Letters (default: op)
- courier.send
- Allows players to send Letters to other players (default: op)
- courier.list
- Allow players to see name suggestions if there's more than one match when sending (default: op)
- courier.info
- Allows seeing command help, fee structure and requesting of re-delivery (default: true)
- courier.theonepercent
- Allows posting of mail even if you have no credits and Economy support has been activated (default: false)
- courier.privacyoverride
- Allows the player to read privacy locked Letters (default: false)
- courier.useitemframes
- Allows the player to put Letters into ItemFrames (default: true)
(For anything but the defaults a Superperms compatible permissions plugin needs to be installed)
Configuration options
- Privacy.SealedEnvelope
- Whether Letters that have been Posted to another player should only be possible to read by that player. If you want to change this option, please read this forum thread. (default: true)
- UseFees
- Whether Courier should activate and require Economy support through Vault. (default: false)
- Fee.Send
- The postal fee withdrawn from the player if UseFees is set to true (default: 10)
- Fee.BankAccount
- The Bank or Player account fees will be deposited into (default: none)
- UpdateInterval
- The interval between checks towards dev.bukkit.org to see if there's a new version of Courier available. A value of 0 disables. (default: 18000 seconds)
- Route.InitialWait
- How long will Courier wait until sending out the first postman after players have started joining the server (default: 10 seconds)
- Route.NextRoute
- How long between rounds. This is the maximum amount of time a delivery can take between two online players (default: 60 seconds)
- Route.WalkToPlayer
- Currently not functioning due to changes in Minecraft.
If friendly postmen (Villager) should walk up to players or not. Unfriendly mobs (Enderman) ignore this setting and never do. (default: true)
- Postman.Type
- Which Minecraft Creature to use as Postman. Courier will accept all valid Creatures but only 'Enderman' and 'Villager' are supported. (default: 'Enderman'). Note: This setting is case sensitive! 'villager' does not work, 'Villager' does.
- Postman.QuickDespawn
- How quickly will a postman despawn after having taken damage or delivered the mail (default: 3 seconds)
- Postman.Despawn
- For how long will a postman stay around each round waiting for the player to take his mail (default: 20 seconds)
- Postman.SpawnDistance
- What's the maximum line of sight distance a postman will spawn in front of a player (default: 10 blocks)
- Postman.BreakSpawnProtection
- Whether Courier should try to override mobspawn protection in order to spawn its Postman (default: true)
- Postman.VanishDistance
- The distance a Postman will check to see if a vanished player would be betrayed by appearing within (default: 20 blocks square)
- Postman.CreativeDelivery
- Whether Postmen should deliver mail to Players who are in Creative mode (default: true)
- Letter.ShowDate
- Whether to display the date a Letter was sent or not (default: true)
- Letter.FreeLetter
- If players should receive free Letters or if they need to have the necessary resources (default: true)
- Letter.Resources
- List of resources needed if FreeLetter is set to false. Example: [CobbleStone, Paper, CobbleStone] (default: [Coal, Paper])
- Letter.RequiresCrafting
- Whether Courier should just deduct the resources or if players need to manually craft letters (default: false)
- Letter.Frameable
- Should it be possible to put Courier Letters into ItemFrames - in effect creating posters/flyers (default: true)
In addition to the above all user visible strings can be edited. Some translated configs are available in the translations folder as well in the plugin data folder. Move and rename them to 'config.yml' to use.
Trivia
As you've understood (and seen if you've looked at the in-game images) I use Maps to render Courier Letters. If you're a plugin developer and your plugin handles maps and you either want to make sure your map system isn't screwed up by Courier Letters, or maybe if you want to handle Courier Letters in a special way, you can easily identify them:
The actual Maps used by Courier to render Letters ALWAYS have their X coordinate set to 2147087904 (or INT_MAX - 395743, if you want).
The ItemStacks(Material.MAP) that point to those Maps are Enchanted with DURABILITY and the enchantment level is used as a database key to find the matching text.
Release history
- 2015-05-14: v1.2.1 uploaded
- 2015-05-09: v1.2.0 uploaded
- 2013-01-16: v1.1.9 uploaded
- 2012-12-30: v1.1.8 uploaded
- 2012-12-20: v1.1.7 uploaded
- 2012-03-04: v1.1.6 uploaded
- 2012-02-25: v1.1.5 uploaded
- 2012-02-13: v1.1.1 uploaded
- 2012-01-31: v1.1.0 uploaded
- 2012-01-15: v1.0.0 uploaded
- 2012-01-02: v0.9.6 uploaded
- 2011-12-30: v0.9.5 uploaded
- 2011-12-27: v0.9.2 uploaded
- 2011-12-26: v0.9.1 uploaded
- 2011-12-23: v0.9.0 uploaded. This page created.
(see the Changelog for detailed information)
Known issues
- Moving Letters between slots in creative mode (/gamemode 1) causes them to become empty later (eg. after logout/login)
- This seems to be a Bukkit issue, please do not handle Courier Letters in creative mode until this is better understood.
- Courier does not support extended character sets, it will skip such input when writing Letters.
- This is due to Bukkit Maps only supporting the 'old' standard Minecraft Font. If support is extended in Bukkit I will implement it into Courier as well.
- ... and all open tickets and issues, of course.
Future development
This plugin is looking for a new maintainer. The original author does not play Minecraft any longer. The update to Minecraft v1.8 could only be made thanks to a pull request having been made at Github. Do not expect any future development until a new maintainer can be found.
pls update to Spigot 1.7.4R04
I PMed the developer and he said there will no longer be any more updates to Courier unless it breaks with an update. If someone would like to continue the project by forking the source code and adding the feature requests (package sending, more formatting code support, etc.), it would be appreciated. Thanks.
@defxor
Hi there defxor good job with your work on Courier Plugin ! I'm actually facing the framed letters issue and i would like to BETA test the newest version to give you an insight.
Hoping that you're doing alright. Take care. Isa.
Regarding framed letters in Bukkit v1.7.x. As discussed on the forum the new behaviour where maps can draw to the very edges means that it's difficult to read framed letters with the current Courier version. I intend to fix that and release a new version of Courier.
This is what it currently looks like after I've added a special background image to Courier. It's actually not difficult for me to change where the text starts, but it would mean that Letters and Framed Letters would lay out text differently (fit different amount of characters per line) and I don't think that's preferable. It would also break the layout of existing Framed Letters in your games.
So - opinions on what would the best way forward? Don't mind the exact colours below - and if you have suggestions for other background graphics feel free to send that to me. 128x128 pixels .PNG. Caveat: The exact color mapping from source to Minecraft is done by Bukkit and not something I can control ;)
(And if you'd like to beta test the current version - let me know in PM)
/defxor
@Finelarme2
Well, Courier is only developed and tested with Bukkit. I'm guessing either a conflict with another plugin or MCPC+ itself.
Sorry.
It works now, damn :P. I'm on a MCPC+ 1.6.2 server (forge 804), mayeb there is conflict ? Come test if you want ♥.
Edit : Hum, don't work finally. When i create a new "courrier" the text update ALL the other courrier with this text :(.
@Finelarme2
That's very strange - when put in ItemFrames Courier uses regular Maps stored in the World directory. If anything they should be "more" secure compared to the enchanted ones used for Letters.
Besides verifying you're indeed seeing additional files created as world/data/map_X.dat when you insert Letters into frames, and that they aren't removed for some reason by another plugin on your server when you restart it, I currently don't know why it would happen.
Thanks for this plugin but why the message is remove when I put it on a frame ?
Same problem with old version.
Ok the version http://dev.bukkit.org/bukkit-plugins/courier/files/13-courier-v1-1-7/ work :). But so sad to use a version of 2012 lol..
Hum no, don't work at all.. Remove when log on/off..
@defxor cool, thanks alot for the really fast response :) 2 minutes ^^
@Toxicterror1991
Yes, it is :)
is this backward compatible with CB 1.6.4?
@defxor
There is an issue with placing the letters in item frames. I responded on the thread.
Also, it would be nice if there could be a wider margin between the edges of the map and the letters, as the edges are a bit hard to read on in some texture packs.
Hi all,
I've created a thread on the forum where I would like your input on how well the existing version of Courier works with the latest development builds of Bukkit 1.7.2.
I've made a (very) brief test myself and it seemed ok, but those of you actively using it know about any possible issues better than I do ;)
regards, defxor
All: I thank you all for your nice comments on Courier but will have to admit that there's no development of new functionality taking place. The source is available and I would happily help anyone interested in either continuing development or forking it.
However:
@chsedv
Courier will indeed be updated to Bukkit 1.7.2 as long as the necessary APIs are there (which I believe they will be). However, there are still only development builds available.
pls update to bukkit 1.7.2
Great plugin, very necessary! But .. very sad that he does not support Cyrillic ((( If it were possible ...
Would be awesome if you added it so you can make a mail a picture!!! ;)
It would be great if this plugin works with Denizen! :)
This plugin is perfect for my RPG. Is there any way you could make compatibility with the Citizens plugin, to get a custom NPC to be the Postman?
I really like the idea of this plugin, very fitting to minecraft :3