Duplicate messages

Discussion in 'Archived: Plugin Requests' started by RandomGuy137, Jun 9, 2014.

  1. Offline

    RandomGuy137

    Hi,
    I've looked and looked: but, I can't find a plugin to block duplicate messages and send the player a message if they do a duplicate message.

    So, I'm requesting this plugin.

    Kind regards,
    Random..

    Tags:
    timtower

    P.S: Source code would be nice for educational purposes.
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    Alster551

    A lot of anti spam plugins do this...
     
  4. Offline

    RandomGuy137

    But they have too many un-needed features, I literally just want duplicate messages.
     
  5. Online

    timtower Administrator Administrator Moderator

    I will make this but I still want to know why I got tagged. Most developers don't like random tags, including me
     
  6. Offline

    xXSilverswordXx

    probably to attract people they know might do the plugin :)
     
  7. Offline

    RandomGuy137

    I probably shouldn't have, Someone told me on skype that you made plugins for people when they asked,, my bad.

    Anyway, Thanks for offering to make this!
     
  8. Online

    timtower Administrator Administrator Moderator

    If you would read my signature then it says otherwise, please also notify your skype contacts about that.
     
  9. Offline

    RandomGuy137

    I have signatures off, again, sorry.
     
  10. Online

    timtower Administrator Administrator Moderator

  11. Offline

    RandomGuy137

  12. Online

    timtower Administrator Administrator Moderator

    RandomGuy137 In my code it is private HashMap<UUID,String> map = new HashMap<UUID,String>();
    And as long as the left one is right the right one will work
     
  13. Offline

    RandomGuy137

    Thanks for the useful information.
     
  14. Offline

    CoderCloud

    timtower You could also store the time, so you can write the same msg again when that time is over:
    HashMap<UUID, HashMap<String, long>> msgs;
    make long equal to System.currentTimeMillis()
     
  15. Online

    timtower Administrator Administrator Moderator

    Wasn't in the request though. And will more be like UUID, custom class containing string and long
     
  16. Offline

    CoderCloud

    timtower Yes. That would be a little cleaner :D
     

Share This Page