Digiex / SFPlugin

A bukkit plugin
7 stars 2 forks source link

Bring across a Simple (but more powerful!) mail Solution #5

Closed Snookieboy closed 13 years ago

Snookieboy commented 13 years ago

Hey,

Is there any chance we can have some sort of Mail Solution, as seen in Essentials.

When you join the server, maybe after 10 seconds it will alert you in green text that you have Mail (You have unread mail, do /mail to read) (No text if you have none).

I'd suggest that way instead of as you log in because if its as you log in, it gets missed in the jarble of text you see when joining a server. Also theres no point telling you that you have no mail, might as well just say nothing if you have no mail.

/mail (Reads your mail) /mail send username message (Send) /mail clear (Clears your mail)

Until Mail is cleared, it should always be unread and prompt you every time you join the server When reading your mail, the last line after should say Clear your mail with /mail clear.

It should use little to no resources, as its only called upon once after joining and thats it. And its useful for Offline messaging players.

Also suggest for Operators only, theres a /mail sendall [message] Once this is done, it goes into the Inbox of every active user. We can this use this for important messages.

jessenic commented 13 years ago

Been thinking about this and I came to a similar solution. At the moment, having both /msg and /mail confuses players, so I was thinking about /msg that works offline too.

Snookieboy commented 13 years ago

To a degree I agree, but I think Mail has its solutions to, espically as you can mail multiple people. Also it stands out more by making you read it to clear the notification, wheres you can easily miss a Msg (I do regularly).

I think it might be worth considering both, as both use no resources as they don't require listening to an ingame event?

skeven commented 13 years ago

What defines an "active user"? I would suppose that if you were to sendall, it'd go to each player with a file.. but then that could result in useless wasted space.. but sending it to only players that are online at that time isn't very effective compared to a /broadcast, etc.

Snookieboy commented 13 years ago

The idea of sendall, is you can send it to all players, and when they login they will get a prompt. So instead of having useless Broadcasts's going off every 15 minutes 24/7/365, We could sendall something new like Minetopia Regenerated, New Features at X, new Commands etc. So instead of having a broadcast on 24/7 telling the same people over again, it would tell each person just once.

An Active User could be decided by a user who has been Active in the last 60 days. To save the server running this constantly, why not Make it an Operator command that can be run, and when it does it looks at every users player files to work out when they were last on, and if over 60 days, it could clear all there files (Mailbox, SFPlugin Data and Player File) That way an admin can run it when the server is empty, or on server start etc.

jessenic commented 13 years ago

Done in d3b6eb0c73d22a96c9c6eefe52c288e6cf7622b3