How do i check the last time A player said a chat message

Discussion in 'Plugin Development' started by Mike111177, Jun 9, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Mike111177

    I'm trying to make an antispam system. How do i check the last time a player said something and what it was quickly just for antispam checking.
     
  2. store the time on each cha, an coparee it whit the time of the next chat
     
  3. Offline

    Mike111177

    how do i store the time...
     
  4. gets an unix timeStanp of the current time by using "long time = new Data().getTime()"
     
  5. Offline

    Mike111177

    umm does that let me check it again at the next event?
     
  6. save it in a hashmap, and get it the next time
     
  7. Offline

    Mike111177

    What is a hashmap
     
  8. Offline

    Mike111177

  9. Long, because you need the time
     
  10. Offline

    messageofdeath

    Use a hashmap
     
Thread Status:
Not open for further replies.

Share This Page