Blayung / my-plugin

A custom plugin for canyon, a craftbukkit fork for minecraft beta 1.7.3, adding various useful utilities to the server.

Home Page:https://modrinth.com/plugin/my-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Plugin

A custom-written plugin for canyon, a craftbukkit fork for minecraft beta 1.7.3, adding various useful utilities to the server.

Features

  • a /players / /list command for non-op players.
  • a block logger (also handles stealing items from chests) - inspection available for op players under /blocklog <- INCOMPLETE! Some block-altering actions like pistons or explosions aren't handled yet!
  • a configurable /info / /rules command.
  • configurable "hello" and "btw" messages.
  • /myplugin-reload for reloading the config while the server is running.

WARNING: Remember to never use /reload with this plugin, since it is known to create dangerous problems.

Downloads are available under the releases tab!

Documentation

The block logger

It will log blocks being placed or destroyed and items being stolen from or put into containers.

The command's name is blocklog, and it uses the following aliases: blocklogger, inspect.

When used without arguments, it will toggle the inspection status of the player who ran it, and if at least a single argument is provided, the player specified in the first argument will get he's inspection status toggled instead.

When the inspection status is enabled, you can left-click blocks to check their history, or right-click them to see the history of the block next to them (on the block face you clicked at). You won't be able to destroy or place blocks, or interact with e.g. doors or trapdoors.

When checking double-chests for items being stolen or put in, make sure that you check both blocks since the plugin will save the interactions at only one.

The block log history will be saved in plugins/MyPlugin/block-log-book.txt when the server stops.

The player list command

All players can use it under /players or /list. It will print the amount of online players and their nicknames.

Reloading

You can safely use /myplugin-reload or /reload-myplugin to reload the configuration file while the server is running.

The info command and hello/btw messages

Intuitive concepts, already well-documented within the plugins/MyPlugin/config.yml file.

Building the plugin (assuming you're on linux, you can just copy and paste the commands if you've already done point 0)

  1. Make sure you have jdk 8 and git installed. If not, check these links out: https://www.oracle.com/java/technologies/downloads, https://git-scm.com/downloads. You can also try to install these programs with your distro's package manager.
  2. Clone the repo: git clone https://github.com/Blayung/my-plugin; cd my-plugin
  3. Clone canyon's repo: git clone --recursive https://github.com/canyonmodded/canyon; cd canyon
  4. Build canyon: ./canyon p; mvn clean package
  5. Copy canyon's api to my repo: cd ..; mkdir canyon-api; cp canyon/Canyon-API/target/canyon-api.jar canyon-api
  6. Delete canyon's repo: rm -rf canyon
  7. Build the plugin: ./gradlew build
  8. Now the plugin jar file should be in the ./build/libs folder :D

About

A custom plugin for canyon, a craftbukkit fork for minecraft beta 1.7.3, adding various useful utilities to the server.

https://modrinth.com/plugin/my-plugin

License:GNU General Public License v3.0


Languages

Language:Java 100.0%