Skip to content

Commit

Permalink
Update v0.10.0 (#52)
Browse files Browse the repository at this point in the history
* Update phpstan.neon.dist

* Fixed PHPDoc

* Update Main.php

* Update Main.php

* Test

* Test 2

* Test 3

* Test 4

* Fixing PHPStan issue

* Removed useless comment.

* Removing some void usage

* Populate skylight on rollback.

* Fixed crash on executeInsertRaw and fixed PHPStan void error.

* Update PluginQueries.php

* Tracking entities killed by blocks (fire, lava, etc...)

* Fixed useless tracking of player death.

* Updated to libasynql v3.3

* Minor improvements on forms

* Updated to new await-generator v2.3.0

* Don't throw an exception during the data request, it could be a false friend.

* Removed unused and useless Query::getLastLogId()

* Removed unused mcpe-protocol (there was also a typo... lol)

* Fixed /co l not correctly working

* Using isset in this case.

* Added /bcp undo command.

* Minor improvements

* Implemented block restrictions during lookup/rollback

* Added permission and doc. for /bcp undo

* Fixed unreacheable point.

* Changed order of permission check.

* Update README.md

* Fixed order of plugin data folder creation.

* Fixed wrong position calculation of liquid tracking

* Minor improvements for player interactions.

* Fixed crash during lookup command on console

* Removed unused assignment.

* Micro-optimization

* Hack fixes for block place tracking, closes #9 (read description)

- Fixed correct meta (damage) value of block.
- Fixed wrong restore of bed and doors when placed.
- Fixed logging of not placeable blocks. (#9)
- Minor improvements.

* Fixed duplicated door log when breaking.

* Removing tiles when rollbacking placed blocks.

* Improved time parsing.

* Using getVanillaName() instead getName()

* Fixed purge command not correctly working on SQLite.

* Fixed missing array counter on parsing time

* Get rid of BlockFactory and BlockIds where possible.

* Using equals to compare items

* Removed excessive log during inventory transaction

* Rollback improvements!

- Removed useless calculation of block to exclude/include during the rollback, they were already calculated on query!
- Get rid of unused and useless CommandParser from rollback steps.
- Now the /co undo is able to undo changes without the time constraint.

* Renamed DB file to logs.db

* Using new version of UpdateNotifier

* Minor improvements

* Fixed missing database name saving to be related to config.

* Refactored some methods

* Woops

* Minor change

* The ignited TNT is now logged.

* Saving ConfigParser instance for each event.

* Improved Painting break tracking.

* Unset events onDisable()

* Wops

* Always check for empty logs

* Improved events handling and splitted inspector handlers from track handlers

* Added undo command on forms.

* Some code formatting

* Fixed possible inconsistency issues with entities and tile blocks that get some null values due to asynchronous methods.

* Wrong exception import...

* Split EntityUtils from Utils

* Better inconsistency check for inventory slot log.

* Minor code code formatting

* Trying new autoloaded dirs for PHPStan removed untested code

* PHPStan test

* Update phpstan.neon.dist

* Revert "Update phpstan.neon.dist"

This reverts commit 4e352ad.

* Trying PHPStan level 6

* Revert "Trying PHPStan level 6"

This reverts commit e71b4f5.

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Trying level 7

* Minor change

* Trying to fix PHPStan

* Revert enum changes and excluded dir from analysis.

* Testing

* Ignoring errors

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Update phpstan.neon.dist

* Trying max level

* Resolving some PHPStan issues

* Fixed more PHPStan issues...

* Fixing PHPStan issues

* PHPStan

* More PHPStan...

* More PHPStan again

* Woopss

* Removed useless empty functions (I don't remember why I put them...)

* Minor improvement

* Renamed functions

* Fixed block burning tracking.

* Downgrade to libasynql v3.2.0

* WTF Git?

* Starting v0.7.0 development (see description about changes)

- Performance boost during log process, not use serializable classes.
- Removed address column from entities table because not used.
- The log time is now calculated from the plugin instead of database, so it avoids to get some stupid logs due to concurrency.

* Fixed FenceGate and Levers not logged when clicked.

* Fixed important bug introduced in v0.6.2: when rollback some falling blocks it causes a log recursion due to block update.

This could be cause of #32

* Do not serialize SerializaBlocks in the BlocksQueryGeneratorTask

* Added __toString() values in Serializable classes

* Implemented Farmland and Grasspath logging.

* Do not allow more than one rollback in the same area or by the same player.

* Fixed restore logs not correctly ordered

* Fixed Fallable blocks not logged when placed.

* Dropped BlockSniper support.

* Fixed lily pad not logged when placed.

* Fixed double plant not logged when placed.

* Updated enum to last PMMP changes.

* Updated Action enum to be compatible

* Fixed ItemFrame not correctly logged.

* Fixed possible null itemframe.

* Removed some PHPStan ignoredErrors

* Simplified and fixed an issue with BlocksQueryGeneratorTask

* Code format

* Wops

* Require ContainerInventory instead of Inventory + do not store in a var the positions

* Fixed #19

* Check active rollbacks outside the await call.

* Improved rollback report

* Improved painting and spawn eggs logging.

* Minor optimizations

* Fixing some PHPStan issues

* Remove entity from fire when logged

* Require API 3.13.0

* Fixed flint and steel not logging correctly TNT ignites.

* Do not log click action when player is sneaking.

* Using Position::getLevelNonNull() instead of Utils:getLevelNonNull()

* Forgot to commit this changes

* Fixed IronDoor not logged when clicked.

* Fixed possible null position when placing itemframe.

* Reverted 25ef5e7 + get first array key instead of 0.

* Fixed LogsQueryGenerator not inserting the time param.

* Removed SpawnEgg tracking.. not really useful in case of AI.

* Fixed liquids tracking when breaking blocks.

* Removed unused parameter

* Fixed liquids not updated after the rollback

* Fixed trapped chest not rollback correctly.

* Fixed /co undo during inventories rollback.

* Revert "Fixed liquids not updated after the rollback"

This reverts commit fde165d.

* Fixed tracking sign text when placed.

* Fixed lilypad logged when placed inside the water.

* Liquids flow is now tracked

* Fixed logging liquid when placed in another different liquid.

* Fixed cake not logged when eaten.

* Fixed flint and steel not able to log "click" actions.

* Fixed block sides not correctly logged.

NOTE: This change do not recurively find all sides to avoid performance issues.

* Fixed wrong action while placing/breaking paintings

* Minor improvements while rollbacking entities.

* Trying fixing PHPStan issue

* Implemented ConfigUpdater

* Change again the way to log sides block... the previuos was too expensive...

* Useless condition or condition...

* Remove array index key check... It should never happen.

* Forgot to temporary change the config version to 0.

* Added translation for config updater, increment config version

* 0.7.0 is done.

* Improved management of time when saving log.

Now it directly uses UNIX time without any timezone conversion.

* Re-ordered parameters of InventoriesQueries::addInventorySlotLog()

* Fixed inclusions/exclusions not working on MySQL + re-implemented support for meta when include/exclude blocks + fixed missing rollback binding parameter

* Fixed crash when using restricted block in UI + updated form library

* ConfigUpdater: now it maintains the previous settings where possible.

* Fixed user filter not working on MySQL

* Re-structured database tables (see description)

- Added constraint names for foreign keys
- Allow negative Y coordinate (ready for MC 1.17)
- Reduced X/Z coordinates to INTEGER instead of BIGINT
- All the column with data type BIGINT UNSIGNED are converted to SIGNED because PHP does not handle unsigned integer properly.

* Allowed radius in lookup command

* Fixed radius not optional in the lookup menu UI

* Forgot do add "ON DELETE CASCADE" in MySQL patch file

* Allow negative ID + allowed more space for meta (fixed #44)

* Fixed lookup taking the default radius instead of null

* Fixed #37

* Fixed entity filter not working

* Entities names are now saved with "#"

* Update Forms.php

* Fixed rollback radius not required but optional.

* Show "Just now" when an log just happend

* Show which options are implemented/changed/removed in the configuration when it's updated.

* Next version is v0.9.0

* QueryManager::addReportMessage() does not require anymore a translated string.

* Exposed as protected RollbackTask::getSerializedChunks()

* Updated comment

* Thanks to Git for ignoring this change from the stable branch...

* Renamed Database to DatabaseManager

* Added DefaultQueries where locate all insertXxx functions

* Drop support for PHP 7.3, minimum is now PHP 7.4. API required is 3.21.0

* Minor PHP 7.4 fixes

* Fixed RollbackTask not using array as Threaded object. Removed AbstractSerializable class

* Transformed DefaultQueries in DefaultQueriesTrait

* Made DatabaseManager final class

* Trying to fix PHPStan lint

* Revert "Trying to fix PHPStan lint"

This reverts commit 6d4d6e8.

* Minor changes

* Removed unused plugin's API + minor change to MathUtils::floorBoundingBox

* Changed version to v0.8.4, there will be not any new feature in this update

* Revert "Changed version to v0.8.4, there will be not any new feature in this update"

This reverts commit 4780ddc.

* [WIP] New features and improvements!

DON'T USE  VERSION 0.10.0, IT IS INCOMPLETE AND NOT TESTED.

Changelog:
- The subcommands rollback, restore and undo can now be used from console
-  Added new command parameter "world". With this parameter you can specify which world you need to rollback blocks.
- Added global radius parameter. Use "r=#global".
- Removed the subcommand menu/ui (/bcp menu). To access the UI commands, you need to enable the flag in the configuration and simply run the command "/bcp" to show the UI in-game.
- Fixed #51
- Refactored the plugin command system and form management.

* More fixes and improvements

* The world should never be null

* Added missing type

* Removed unused variables

* Update queries with limit and offsets

* Split rollback/restore queries in max 25000 rows.

I have to decide whether to leave this number constant or let the user decide the maximum based on memory availability. Increasing the number will decrease the time for a world to rollback

* Fixed crash in case of rollback/restore from console

* Added message indicating if the world is going to be rollbacked or restored when using "undo" command

* BlockUtils::asTile() now accepts Position instead of Block

* Updated translations

* Fixed inspector show two times the output message when clicking an inventory block

* Minor help messages styles changes

* Finished to update all translations

* Cosmetic change

* Added missing language key

* Update translations when reload the config

* Shut-up PHPStan

* Fixed wrong time calculation int the report

* Removed getPlugin() override

* Code reformat

* Fixed wrong doc. comment

* Build SerializableBlock with Vector3

* Minor changes

* Update README.md

* Ops

* Fixed purge command not working from console + minor changes/fixes on ParsableSubCommand

* Added PRAGMA optimize for SQLite database.

This should improves the database speed if necessary after a long usage (according to SQLite docs). The pragma will be executed before closing the database connection and every 8 hour after the server starts.

* Implemented additional parameters + improved puge command

Additional parameters: they are special parameters (#parameter) to be added in the command allowing different features. Actually only #optimize has been added and can be used in the /bcp purge command. (e.g. /bcp purge t=30d #optimize) and it allows to reduce the database space occupation and optimize the query insertion.

The purge command now also allow to choose which world delete the log by using "/bcp purge t=1s w=my_world_name"

* Minor changes to Action enum

* Minor improvement for CommandParameter::fromString()

* Code reformat

* Changed UpdateNotifier src

* Support PHP 8

* Updated to last libasynql version to support PHP8

* Added missing /bcp show command alias

* Revamp the README file

* Woops
  • Loading branch information
matcracker authored Aug 5, 2021
1 parent dcbaae6 commit a0ace70
Show file tree
Hide file tree
Showing 57 changed files with 3,302 additions and 2,037 deletions.
8 changes: 4 additions & 4 deletions .poggit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ projects:
icon: resources/bedcoreprotect_logo.png
libs:
- src: poggit/libasynql/libasynql
version: ~3.3.1
version: ~3.3.2
- src: SOF3/await-generator/await-generator
version: ~3.1.0
- src: JackMD/UpdateNotifier/UpdateNotifier
- src: ifera-mc/UpdateNotifier/UpdateNotifier
version: ~2.1.0
- src: matcracker/FormLib/FormLib
version: ~1.2.0
- src: dktapps-pm-pl/pmforms/pmforms
version: ~1.0.0
...
296 changes: 207 additions & 89 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# BedcoreProtect
[![](https://poggit.pmmp.io/shield.dl.total/BedcoreProtect)](https://poggit.pmmp.io/p/BedcoreProtect)
[![](https://poggit.pmmp.io/shield.state/BedcoreProtect)](https://poggit.pmmp.io/p/BedcoreProtect)
[![](https://poggit.pmmp.io/shield.api/BedcoreProtect)](https://poggit.pmmp.io/p/BedcoreProtect)
[![Discord](https://img.shields.io/discord/620519017148579841.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/Uf6U78g)

# BedcoreProtect
BedcoreProtect is a fast, efficient, data logging and anti-griefing tool for PocketMine servers. Rollback and restore any amount of damage.

## Features
Expand Down Expand Up @@ -56,96 +56,214 @@ Rollback or restore multiple players at once.

...and the list is still expanding!

# Database Minimum Requirements
- **MySQL** version must be >= **5.6.4**
## Database Minimum Requirements
If you are using **MySQL** as storage, the minimum required version must be >= **5.6.4**

# Commands
The main command is **/bedcoreprotect** but it accepts the folllowing aliases: **/bcp, /core, /co** (**Main permission:** _bcp.command.bedcoreprotect_)

**Quick command overview:**
- **/bcp help - _Display a list of commands_** (**Permission:** _bcp.subcommand.help_)
- **/bcp inspect - _Toggle the inspector mode_** (**Permission:** _bcp.subcommand.inspect_)
- **/bcp menu - _Display a graphic interface to use the plugin (UI)._** (**Permission:** _bcp.subcommand.menu_)
- **/bcp rollback \<params> - _Rollback block data_** (**Permission:** _bcp.subcommand.rollback_)
- **/bcp restore \<params> - _Restore block data_** (**Permission:** _bcp.subcommand.restore_)
- **/bcp lookup \<params> - _Advanced block data lookup_** (**Permission:** _bcp.subcommand.lookup_)
- **/bcp show \<params> - _Allows to show a specific page of logs._** (**Permission:** _bcp.subcommand.show_)
- **/bcp purge \<params> - _Delete old block data_** (**Permission:** _bcp.subcommand.purge_)
- **/bcp reload - _Reload the configuration file_** (**Permission:** _bcp.subcommand.reload_)
- **/bcp status - _View the plugin status_** (**Permission:** _bcp.subcommand.status_)

**Shortcut commands:**
- **/bcp near \[value]**: _Performs a lookup with radius (default 5)_ (**Permission:** _bcp.subcommand.near_)
- **/bcp undo**: _Revert a rollback/restore via the opposite action_ (**Permission:** _bcp.subcommand.undo_)
---
**Advanced command overview:**
> **/bcp help**<br>
_Diplay a list of commands in-game_

> **/bpc inspect**<br>
_Enable the inspector. Type the command again to disable it. You can also use just **"/bcp i"**_

> **/bpc menu**<br>
_Display a graphic interface to simplify the plugin commands usage. You can also use just **"/bcp ui"**_

> **/bcp rollback u=\<user> t=\<time> r=\<radius> a=\<action> b=\<blocks> e=\<exclude>**<br>
_Nearly all of the parameters are optional. Shortcut: **"/bcp rb"**._

>>**u=\<user>** - Specify a user to rollback.<br>
_Example: u=Shoghi u=Shoghi,#zombie_

>>**t=\<time>** - Specify the amount of time to rollback.<br>
You can specify weeks,days,hours,minutes, and seconds.<br><br>
_Example: t=4w5d2h7m20s_<br><br>
You can pick and choose time amounts. <br>
_Example: t=5d2h_

>>**r=\<radius>** - Specify a radius.<br>
You can use this to only rollback blocks near you.<br><br>
For example, the following would only rollback damage within 10 blocks of where you are standing: r=10

>>**a=\<action>** - Restrict the lookup to a certain action.<br>
For example, if you wanted to only rollback blocks placed, you would use a:+block<br><br>
Here's a list of all the actions:<br>
• a=block (blocks placed/broken)<br>
• a=+block (blocks placed)<br>
• a=-block (blocks broken)<br>
• a=click (player interactions)<br>
• a=container (items taken from or put in chests, etc.)<br>
• a=+container (items put in chests, etc.) <br>
• a=-container (items taken from chests, etc.)<br>
• a=kill (mobs/animals killed)<br>
>>**b=\<blocks>** - Restrict the rollback to certain block types.<br>
For example, if you wanted to only rollback stone, you would use b=1<br>
You can specify multiple items, such as b=1,5,7<br>
or b=stone,planks,bedrock<br><br>
You can find a list of block type IDs at https://minecraft.gamepedia.com/Bedrock_Edition_data_values

>>**e=\<exclude>** - Exclude certain block types from the rollback.<br>
For example, if you don't want TNT to come back during a rollback, you would type e:46

> **/bpc restore u=\<user> t=\<time> r=\<radius> a=\<action> b=\<blocks> e=\<exclude>**<br>
_Same parameters as /bcp rollback. Shortcut: **"/bcp rs"**._<br><br>
Restoring can be used to undo rollbacks.

> **/bcp lookup u=\<user> t=\<time> r=\<radius> a=\<action> b=\<blocks> e=\<exclude>**<br>
_Search through block data using the same parameters as /bcp rollback. Shortcut: **"/bcp l"**._<br>
> **/bcp show \<page>:\[lines]**<br>
_Allow to switch pages of /bcp lookup command. Shortcut: **"/bcp s"**._<br><br>
When multiple pages returned from lookup command, use the command **"/bcp show \<page>"** to switch pages.<br>
To change the number of lines displayed on a page, use the command **"/bcp show \<page>:\<lines>"**.<br><br>
For example, **"/bcp show 1:10"** will return 10 lines of data, starting at the first page.

> **/bcp purge t=\<time>**<br>
_Purge old block data. Useful for freeing up space on your HDD if you don't need the older data._<br><br>
For example, "/bcp purge t=30d" will delete all data older than one month, and only keep the last 30 days of data.
You can access the following commands by using **/bedcoreprotect**, **/bcp**, **/core** or **/co**.
Running this command without arguments and with the configuration option `enable-ui-menu: true`, it will display a graphic interface to simplify the plugin usage.

# FAQ
The **command permission** is _bcp.command.bedcoreprotect_ (default: operator).

## Command overview
| Command | Description | Permission | Permission default |
|---------------|-------------------------------|-------------------------|:------------------:|
| /bcp help | Display a list of commands | bcp.subcommand.help | Operator |
| /bcp lookup | Lookup block data | bcp.subcommand.lookup | Operator |
| /bcp purge | Delete old block data | bcp.subcommand.purge | Operator |
| /bcp reload | Reload the configuration file | bcp.subcommand.reload | Operator |
| /bcp inspect | Toggle the inspector | bcp.subcommand.inspect | Operator |
| /bcp restore | Restore block data | bcp.subcommand.restore | Operator |
| /bcp rollback | Rollback block data | bcp.subcommand.rollback | Operator |
| /bcp show | View the plugin status | bcp.subcommand.show | Operator |
| /bcp status | View the plugin status | bcp.subcommand.status | Operator |

### Command shortcuts
| Command | Description | Permission | Permission default |
|-----------|---------------------------------------------------|---------------------|:------------------:|
| /bcp near | Performs a lookup with radius 10 | bcp.subcommand.near | Operator |
| /bcp undo | Revert a rollback/restore via the opposite action | bcp.subcommand.undo | Operator |

## Command details
_Detailed commands information are listed below._

### /bcp help
Display a list of commands available in-game.

---

### /bcp lookup \<parameters\>
Perform a lookup returning a page with all blocks data fetched. If multiple pages are returned, see the command [/bcp show](#bcp-show-pagelines) to switch pages.

> **Alias:** /bcp l \<parameters\>
| Parameter | Mandatory |
|-----------|:------------------:|
| time | YES |
| world | YES (only console) |
| radius | NO |
| users | NO |
| actions | NO |
| include | NO |
| exclude | NO |

---
### /bcp purge \<parameters\>
Purge old block data. Useful for freeing up space on your HDD if you don't need the older data.

| Parameter | Mandatory |
|-----------|:---------:|
| time | YES |
| world | NO |

For example, `/bcp purge t=30d` will delete all data older than one month, and only keep the last 30 days of data.

#### Purging Worlds
You can also optionally specify a world where delete the data.
For example, `/bcp purge t=30d w=faction_world` will delete all data older than one month in the Faction world, without deleting data in any other worlds.

You can also add `#optimize` to the end of the command (e.g. `/bcp purge t=30d #optimize`) will also optimize your tables and reclaim disk space.

---
### /bcp reload
Reloads the configuration file.

---

### /bcp inspect
Enable the inspector. Type the command again to disable it.

> **Alias:** /bcp i
---

### /bcp restore \<parameters\>
Perform a rollback. _Rollbacks can be used to revert player actions._

> **Alias:** /bcp rs \<parameters\>
| Parameter | Mandatory |
|-----------|:------------------:|
| time | YES |
| world | YES (only console) |
| radius | YES |
| users | NO |
| actions | NO |
| include | NO |
| exclude | NO |
---

### /bcp rollback \<parameters\>
Perform a restore. _Restoring can be used to undo rollbacks or to restore player actions._

> **Alias:** /bcp rb \<parameters\>
| Parameter | Mandatory |
|-----------|:------------------:|
| time | YES |
| world | YES (only console) |
| radius | YES |
| users | NO |
| actions | NO |
| include | NO |
| exclude | NO |
---

### /bcp show \<page\>:\<lines\>
Allow switching page when multiple pages are returned from the [/bcp lookup](#bcp-lookup-parameters) command.
To change the number of lines displayed on a page, use the command `/bcp show <page>:<lines>`.

> **Alias:** /bcp s
> For example, `/bcp s 2:10` will return 10 lines of data, starting from the second page.
---

### /bcp status
Displays the plugin status and version information.

---

## Parameters overview
| Parameter | Aliases | Description |
|-----------|-----------|--------------------------------|
| users | user, u | Specify the user(s). |
| time | t | Specify the amount of time. |
| radius | r | Specify a radius area. |
| world | w | Specify the world. |
| actions | action, a | Restrict to a certain actions. |
| include | i | Include specific blocks. |
| exclude | e | Exclude specific blocks. |

## Parameter details
_Detailed commands parameters information are listed below._

### u=\<users\>
_You can specify a single or multiple users or entities._

Examples:
- `u=Notch`
- `u=Notch,shoghicp`
- `u=matcracker,#Zombie`
---

### t=\<time\>
_You can specify weeks, days, hours, minutes, and seconds._

Examples:
- `t=4w5d2h7m20s`
- `t=5d2h`
---

**I found a bug, where can I report it?**
- > You can report [here](https://github.com/matcracker/BedcoreProtect/issues/new/choose) by clicking button **"Get Started"** on **Bug report**.
### r=\<radius\>
_A numeric radius targets within that many blocks of your player location._

**Where can I request a new feature?**
- > You can ask a new feature [here](https://github.com/matcracker/BedcoreProtect/issues/new/choose) by clicking button **"Get Started"** on **Feature request**.
Examples:
- `r=20` _(target within 20 blocks of your location)_
- `r=#global` _(target the entire server)_
---

### w=\<world\>
_You can specify a single world._

Examples:
- `w=faction`
- `w="my world"` _(if your world name has whitespaces use double quotes)_
---

### a=\<actions\>
_Restrict the command to a specific action._

| Action | Description |
|------------|-----------------------------------|
| block | Placed/Broken blocks |
| +block | Placed blocks |
| -block | Broken blocks |
| click | Player interactions |
| container | Items taken from or put in chests |
| +container | Items put in chests |
| -container | Items taken from chests |
| kill | Mobs killed |

> For example, if you want to only rollback blocks placed, you would use `a=+block`
---

### i=\<include\>
_Can be used to specify a blocks/items._

Examples:
- `i=stone` _(only includes stone)_
- `w=stone,oak_wood,bedrock` _(specify multiple blocks)_
> You can find a list of blocks at https://minecraft.gamepedia.com/Bedrock_Edition_data_values.
---

### e=\<exclude\>
_Can be used to exclude a blocks/items._

Examples:
- `e=tnt` _(only excludes TNT)_
---

# FAQ
- **I found a bug, where can I report it?**
- You can report [here](https://github.com/matcracker/BedcoreProtect/issues/new/choose) by clicking button **"Get Started"** on **Bug report**.
- **Where can I request a new feature?**
- You can ask a new feature [here](https://github.com/matcracker/BedcoreProtect/issues/new/choose) by clicking button **"Get Started"** on **Feature request**.
4 changes: 1 addition & 3 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: BedcoreProtect
main: matcracker\BedcoreProtect\Main
version: 0.9.1
version: 0.10.0
api: 3.21.0

load: POSTWORLD
Expand All @@ -19,8 +19,6 @@ permissions:
description: "Allows the user to run the sub-command /bedcoreprotect inspect"
bcp.subcommand.lookup:
description: "Allows the user to run the sub-command /bedcoreprotect lookup"
bcp.subcommand.menu:
description: "Allows the user to run the sub-command /bedcoreprotect menu"
bcp.subcommand.near:
description: "Allows the user to run the sub-command /bedcoreprotect near"
bcp.subcommand.purge:
Expand Down
6 changes: 5 additions & 1 deletion resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Configuration file version. DON'T EDIT!
config-version: 2
config-version: 3

# Plugin language
language: eng
Expand All @@ -27,6 +27,10 @@ database:
# Recommended: 1 for sqlite, 2 for MySQL. You may want to further increase this value if your MySQL connection is very slow.
worker-limit: 1

# Allow to use plugin commands through an user interface.
# To use the UI, you need to type in-game the command "/bedcoreprotect" or its aliases.
enable-ui-menu: true

# A list of worlds where the plugin can track logs
enabled-worlds: []

Expand Down
Loading

0 comments on commit a0ace70

Please sign in to comment.