[1.12.2] CoreProtect Uploader
v1.0An addon for the plugin CoreProtect which allows you to upload chat and command logs to Pastebin
Coreprotect Uploader v1.0
-FallingAngel
An addon plugin to Intelli's CoreProtect v2.14.4
This plugin gathers the chat/commands logs from your MySQL database, and cleanly prints them out in a pastebin file for easier scanning through. All database queries are run through Async so as to prevent server lag.
Requirements:
- CoreProtect v2.14.4 (Have not tested on any other versions)
- Data being stored in a MySQL database
- A Pastebin account.
Pastebin information can be gathered by making a pastebin account. ApiKey is taken from here.
Make sure that your
table-prefix:
is the same as in your coreprotect config file.
Players to be allowed the ability to upload need the permission
Uploader.upload
Config
#######################################
# #
# CoreProtect Uploader #
# #
#######################################
#Pastebin API:
PasteUser:
PastePass:
PasteKey:
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#SQL Database
host:
port:
database:
username:
password:
table-prefix:
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#Commands
- /upload - give info on how to upload files
- /upload ign action - uploads to pastebin (Actions include chat/commands)
- /upload reload - reloads the config
ToDo:
- Fix small exception with incorrect arguments (does not crash plugin)
- Allow all form of logs to be uploaded - not just chat/commands
- Get logs directly from database.db file if MySql is not being used
This code is used to access information from CoreProtect, a plugin by @Intelli : https://www.spigotmc.org/resources/coreprotect.8631/
I take no credit for his code or his work in any way shape or form, this is simply an addon
If you like it, make sure to reply below, and you can always pm me, or post here any issues :)
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta