[INACTIVE][CHAT] ThunderGhast - Standalone mail plugin [740]

Discussion in 'Inactive/Unsupported Plugins' started by Hretsam, Apr 27, 2011.

  1. Offline

    Hretsam

    ThunderGhast - Standalone mail plugin
    Version: v1.1

    This was a request of shadrxninga.

    ThunderGhast is a plugin that allows the users to mail eachother. You can do most of the basic mail functions like: send, reply, delete & store.
    This can be an great admin tool to! As users are able to send mails to admins about griefers

    It works both with MySQL & SQLLite. I am working on adding flatfile support.
    There are still some things left to do to polish it up (ea. make it fully configurable). But its working as it supposed to. I will make sure that no data gets lost when you update this later.

    If you got suggestions, i am all open for it.

    Features:
    • Send, reply, store & delete mails.
    • Possible to limit mails for certain users
    • Has permission support, but also works without
    • MySQL can be integrated with an existing database
    • Can be used on multiple server with MySQL.
    Download file here. (version v1.1)

    Source code (github)

    The commands for this plugin:
    CommandList (open)

    • /tgcheck - checks if you got unread mails
    • /tgmailbox [boxname] - opens the mailbox with the name given (inbox if no boxname is given)
    • /tgread <mailid> - Shows the mail with the given id
    • /tgstore <mailid> <boxname> - Stores the mail in the given box
    • /tgreply <mailid> <message> - Sends an reply of the mail
    • /tgmail <playername> <subject> <message> - sends an mail to the given user
    • /tglongmail <playername> <subject> - Sends a long mail to the given user. (this overrides the chat for the user, to fill the mail. Use the command again to send it)
    • /tgdelete <mailid> - Removes the mail with the given id


    Config file, if you want it:
    config.yml (open)
    Code:
    ## Version of the config file, do not touch
    configversion: 1
    
    ## This chooses where the program stores the emails.
    ## sqllite or mysql
    mail storage: sqllite
    ## Settings for mysql (if used)
    ## Make sure the user can select, update, delete, and create a table!
    mysql location: localhost
    mysql username: root
    mysql password: root
    mysql remote: false
    mysql database: thunderghast
    mysql mailtable: mails
    
    ## Use permissions
    use permissions: true
    ## Enable users to make long emails
    enable longmails: true
    ## show unread mails on login
    show message on login: true
    
    ## This sets the max amount of mails a user can have
    ## only used if permissions is off
    mailboxsize: 20
    ## how long unread mails should stay in the inbox
    ## Upcomming feature, is not ready yet
    storage length: 30
    
    ## For permissions
    nodes:
      ## groupname, not used yet
      user:
        ## same as above
        mailboxsize: 20
        ## the permission node for this group
        node: thunderghast.usernode
      admin:
        mailboxsize: 0
        node: thunderghast.adminnode
    
    Upcoming & Buglist (open)


    Upcoming:
    • More adaptable to personal likings. (change colours, messages)
    • Improved GUI
    • Admin commands
    • Webaccess with MySQL (With help of White Sheep)
    • Auto remove old mails
    • Iconomy Support
    • Mailbox block or Mailman NPC?
    • Flatfile Support
    • Ability to send items
    • Add help page
    BugList:
    • Some things (like an other plugin) can freeze the longmail, making the chat unusable
    • An reply for a mail is send to the person who replied (to yourself)
    • If an users try to read a mail that isn't theirs, it throws a Exception
    Changelog:

    Version 1.1:
    • Fixed bug where "_" was considered as an illegal character
    • Fixed missing message at /tglongmail
    • Fixed small error in default config file (admin group had thunderghast.usernode as node)
    Version 1.0:

    • Initial Release
     
    jasonznack likes this.
  2. Offline

    White Sheep

    Finaly:D Thnx for making this plugin!
     
  3. Offline

    Hretsam

    No problem, happy to help. Will keep working on improving it.
     
  4. Offline

    shadrxninga

  5. Offline

    Plague

    changelog has to show latest version changes, spoiler can be used for older ones
    (and also it's "Upcoming")
     
  6. Offline

    Hretsam

    This better?
     
  7. Offline

    White Sheep

    First bug: "[SEVERE] [ThunderGhast] - IllegalCharException This character is not allowed"
    I get this only if the user have a "_" in the username.
     
  8. Offline

    Hretsam

    Oh yeah, i forgot that users can have that in their name

    Fixed it, you can download 1.1 now.
     
  9. Offline

    deathkiller

    Great plugin i hope you get it 100% perfect, looking forward to it
     
  10. Offline

    triarry

    I am stuck and unable to chat after using longmail. Any attempt to send ANY longmail results in Your arguments contain forbidden characters.Even when I send a /tgmail, i still am stuck unable to chat. I am using herochat. I can talk fine in party chat for mcmmo.
     
  11. Offline

    White Sheep

    I Think v1.1 wil fix forbidden characters and longmail.
    But only the source is updated to 1.1, the jar is still 1.0 (for me)
     
  12. Offline

    triarry

    i would like an update as to when this is fixed because one of my frequent players has an underscore in his name:)
     
  13. Offline

    Kimberly2000

    Looks promising, does the mySQL feature prefixes for the tables?

    I use 1 DB for all my MC tables, and prefixes not only let me have 10 users tables, but let me know which one is the problem quickly.

    ie.
    thundergast_mail
    thundergast_users
    etc.
     
  14. Offline

    White Sheep

    I think you can change this in your config.yml

    "mysql mailtable: mail" into "mysql mailtable: thundergast_mail"
     
  15. Offline

    Dope

    Thanks, I've been looking for a plugin like this for quite a while!

    EDIT: So I got it working, but I found a bug.
    If I type a mailID which is non-existant, this console error pops up:

    Code:
    15:49:51 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tgre
    ad' in plugin ThunderGhast v1.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85
    )
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:2
    55)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.
    java:675)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
            at com.bukkit.hretsam.thunderghast.Commands.CommandRead.run(CommandRead.
    java:28)
            at com.bukkit.hretsam.thunderghast.ThunderGhast.onCommand(ThunderGhast.j
    ava:113)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
     
  16. Offline

    Lars1011

    I have an idea maybe add it able to send items in the mai?
     
  17. Offline

    peaced

    Hi.
    Since you plan improvement, I have a request.

    I'm gonna run a server where only local chat is allowed.
    Players will be able to send mail to each other after they meet for the 1st time (no /who etc)

    What would be great is to be able to configure a delay before mail is delivered (simultating travel time of the "postman")
    Also, being able to charge with iConomy.
    Eventualy, the "postman" could be a NPC
    And of course, add a "mailbox" item (chest, musicbox, whatever)

    That's all ;)
     
  18. Offline

    untergrundbiber

    Great plugin! :D
    Can you integrate sending items?
     
  19. Offline

    Shasharala

    A flatfile version of this would be greatly appreciated!
     
  20. Many of my players have underscores, so support for that would be nice :D
     
  21. Offline

    Phaedrus

    Request 1: Ability to send items and iconomy currency.
    Request 2: Ability to charge postage for sending mail. Either item based, like a piece of paper, or iconomy money.
    Request 3: Physical mail box. Ie, place a specially worded sign on a chest to make it a mail box. Each person could have their own mailbox that they would physically have to check.
     
  22. Offline

    Hretsam

    Wierd, will look into it.

    Your right, i uploaded the wrong jar file. I reuploaded it so it should be fine now

    Thanks, its an null reference that isn't checked there.

    Hmm NPC could be a nice idea, i can get that working with minimum load. (i think)
    I will add an delay. And i will also add you can only send mails to players who you came in contact with (configurable distance neede).
    This will also help for the Iconomy suppport


    Yes, i will make it possible to send items (this will also contribute to the Iconomy support)

    1. Yes will add that
    2. Same thing
    3. I can add something that listens to a 'mailblock' instead of an NPC, or instant.


    No not on the default. But like White_Sheep said, you can configure the names for the tables (which is currently only one, but will become more when updates).

    Ok, i will see what i can do. But i would still suggest to use SQLLite or MySQL.
     
    jasonznack likes this.
  23. Offline

    deathkiller

    Mysql for the win :)
     
  24. Offline

    Steve7596

    When ever me or any other player tries to check mail they can only check the recent mail they got not anything before. It says an Internal Error Occurred While Performing this Command.
    So if someone sent me 2 messages I can only check the 2nd one not the first.
    Any help? This plugin would be the best if this problem got solved.
     
  25. Offline

    LeGenDaryX

    Is it possible to integrate an ingame help command with all commands for this?
    Or is it there and i don't know it yet? :p
     
  26. Offline

    DannyCare

    I'm waiting for Group Mail support and then I will definitely use. For now, Essentials will have to do. :(
     
  27. Also requesting this, it's quite a bit to remember.
     
  28. Offline

    sillyrosster

    Add the "physical mailbox" and this will be an awesome mailbox plugin!
     
  29. Offline

    Mentioum

    on using the /tglongmail playername title command it takes over chat as it is supposed to. However on completing your mail and using the command again it says mail sent but doesn't return you to normal chat and you stay in /tglongmail mode.

    /tgreply also seems to send a mail to yourself... please help if this is something mistaken at my end.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 14, 2016
  30. Offline

    Hretsam

    Does it say anything on the console?

    Hmm, thats a bug. I'll fix that

    Yes, i got this request from the players on my own server to.
    I will change the commands a little, so it will print the help page when the command is entered wrong.

    You mean the mail system of essentials? And you want it to port over to this system?
     

Share This Page