Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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