Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asintotoo/messagelogger
Spigot Message Logging Plugin
https://github.com/asintotoo/messagelogger
logging message minecraft minecraft-plugin spigot spigot-plugin
Last synced: 7 days ago
JSON representation
Spigot Message Logging Plugin
- Host: GitHub
- URL: https://github.com/asintotoo/messagelogger
- Owner: Asintotoo
- Created: 2024-08-20T10:39:03.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T06:55:22.000Z (3 months ago)
- Last Synced: 2024-10-12T03:40:24.915Z (about 1 month ago)
- Topics: logging, message, minecraft, minecraft-plugin, spigot, spigot-plugin
- Language: Java
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MessageLogger
Spigot Message Logging Plugin
***
## What is it?MessageLogger is a simple Spigot plugin which store inside a database all the messages sent by players.
All database operation are completely asynchronous, meaning that the main server thread will not be slown down when performing database requests.
## Commands
- ```/messagelogger info``` Get a simple message containing the version of the plugin and the author's name
- ```/messagelogger log [page]``` Print the list of messages sent by the given player from the more recent to the less recent
- ```/messagelogger logall [page]``` Print the list of messages sent by all the players from the more recent to the less recent
- ```/messagelogger reload``` Reload the plugin
- ```/messagelogger export all [limit]``` Export all the sent messages to a file
- ```/messagelogger export single [limit]``` Export all the messages sent by the player to a file
**Aliases:**
- ```/msglog info```
- ```/msglog log [page]``` or ```/log [page]```
- ```/msglog logall [page]``` or ```/logall [page]```
- ```/msglog reload```
- ```/msgl export [limit]```## API
MessageLogger comes with an API, to use it just run ```MessageLoggerAPI = MessageLoggerApiProvider.getAPI();```
The api contains some methods to get the list of the messages sent by players as a ```List```, the ```Message``` class contains a field called "message", a field called "date" and a field called "playerName", you can obtain them by calling ```getMessage()```, ```getDate()``` and ```getPlayerName()```.
## Libraries Used
- [Basic](https://github.com/Asintotoo/Basic): My Personal library to create Minecraft Plugins
- [ColorLib](https://github.com/Asintotoo/ColorLib): My Color Parsing Library for Spigot (built into Basic)
- [Lamp](https://github.com/Revxrsal/Lamp/): A modern annotations-driven commands framework for Java and Kotlin