Sueta
[1

[1.12.2] CoreProtect Uploader

v1.0

An addon for the plugin CoreProtect which allows you to upload chat and command logs to Pastebin

·Plugin

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 →