Git Product home page Git Product logo

blocklogger's Introduction

Blocklogger

A block change logging tool for the Fabric mod loader. Part of the FabricAdmin suite of tools. Blocklogger is being merged with WatchTower, please see the new repo at github.com/fabricservertools/deltalogger

Join the discord at https://discord.gg/UxHnDWr

Todo

  • Rollbacks
  • Fully multithread database

Develop

How can you help develop blocklogger?

  • First download the source code and open in your IDE
  • Run the following commands:
./gradlew genSources
./gradlew vscode (if you are using VScode, if you're using IntelliJ then look on the fabric wiki)
Build with .\gradlew build 

Use

Blocklogger (as of v0.2) saves the log to a file named blocklogger.bl in the game directory. Access via the command /bl in game

Important note regarding migration from v0.2.x -> v0.3.x

Existing databases will be broken by updating. Before v0.3.0 is released, there will be an in game tool to update databases

All interactions

v0.3 and above

Information is saved to interactions.bl. There are multiple in game commands to help with reading a database

/bl inspect

When provided a BlockPos argument, this command prints the latest 10 interactions from the database to chat When no argument given, this command toggles inspect mode. Whenever a player with inspect mode attacks a block, the database entries for it are given

Requires permission level 3+

/bl search

A query builder in a command. You can specify many parameters and an SQL query is built and executed, with the results printed to chat

Requires permission level 3+

/bl sql

An experimental command to allow custom queries to be entered from an in game command

Requires permission level 4+

v0.2.x

Information is saved to interactions.bl. Block interaction data for a block is accessible via command /bl i x y z You can filter for players and block types by using /bl s

Compile

Open in your IDE, and open a terminal. Run the following commands:

./gradlew genSources

./gradlew build

The .jar files are located in build/libs

License

Blocklogger is licensed under the GNU GPL v3.0, found in license.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.