Sueta

ChatReplay

2.0.3

Replay chat history on login

·Plugin

ChatReplay replays the most recent chat-history when a player joins.

This allows players to quickly catch-up on what happened in chat before they joined the server.
When hovering over the replayed messages in chat it shows a timestamp from when the messages have been sent.
You can adapt the amount of messages replayed(/stored in memory) in the configuration file.

Note: Requires Spigot or PaperSpigot (tested)

Configuration:

# ChatReplay Configuration  
 #  
 #  Should messages be automatically re-played on login?  
 #    replayOnLogin  
 #  
 #  If installed, should DiscordSRV messages be recorded?  
 #    recordDiscordSRV  
 #  
 #  Chat Buffer Options:  
 #  
 #    bufferSize: How many of the most recent chat messages to store in total  
 #    viewSize: How many messages to show players at once. Vanilla Minecraft Client has a history limit of around 100  
 #  
 #  Messages  
 #  
 #    Format of timestamp string. Do not use color / formatting codes.  
 #    Format instructions: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html  
 #      timestampFormat  
 #  
 #    Header and footer message of replay output  
 #    Available variables: {{msgCount}}  
 #      replayHeader  
 #      replayFooter  
 #  
 #    Formatting for single messages replayed  
 #    Available variables: {{player}}, {{message}}, {{timestamp}}  
 #      replayMsgFormat  
 #      replayMsgHover  
 #  
 #    Button to navigate chat history  
 #       navigateHistoryButtonText   
replayOnLogin   :  true  
recordDiscordSRV   :  false  
bufferSize   :  500  
viewSize   :  70  
timestampFormat   :  yyyy-MM-dd HH:mm  
replayHeader   :  '&7&lReplaying last  {   {  msgCount  }   }  messages'  
replayFooter   :  '&7&lReplayed last  {   {  msgCount  }   }  messages'  
replayMsgFormat   :  '&7  [   {   {  player  }   }   ]   :   {   {  message  }   }  '  
replayMsgHover   :  '  {   {  timestamp  }   }  '  
navigateHistoryButtonText   :  '&7&nSHOW OLDER'

Commands:

/chatreplay reload # Reloads the configuration 
/chatreplay play # Replay chat from the start 
/chatreplay more # Show more, navigate backwards in time 
/chatreplay clear # Clear stored messages

Permissions:

chatreplay.all  :  
   description   :   All  permissions for ChatReplay  
   default   :  false  
   children  :  
     chatreplay.reload   :  true  
     chatreplay.clear   :  true  
     chatreplay.view   :  true  
 chatreplay.reload  :  
   description   :  Reload plugin config  
   default   :  false  
 chatreplay.clear  :  
   description   :  Clear chat buffer  
   default   :  false  
 chatreplay.view  :  
   description   :  View replayed chat including history on login and via command  
   default   :  true  
   children  :  
     chatreplay.play   :  true  
     chatreplay.more   :  true  
     chatreplay.playlogin   :  true  
 chatreplay.play  :  
   description   :  View most recent chat  
   default   :  false  
 chatreplay.more  :  
   description   :  View older chat messages  
   default   :  false  
 chatreplay.playlogin  :  
   description   :  Replay chat on login  
   default   :  false

Example

This is my first plugin release. Feedback and pull requests are highly appreciated!

Report bugs here: https://github.com/Tallcraft/ChatReplay/issues

Similar projects

Plugin →