Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svoxeldev/slimits
Continuation and recode of the Spigot Limits plugin. Requested by @Trevor1097
https://github.com/svoxeldev/slimits
gradle java minecraft spigot-plugin
Last synced: 2 months ago
JSON representation
Continuation and recode of the Spigot Limits plugin. Requested by @Trevor1097
- Host: GitHub
- URL: https://github.com/svoxeldev/slimits
- Owner: sVoxelDev
- License: gpl-3.0
- Created: 2020-05-05T20:51:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-03T11:58:08.000Z (10 months ago)
- Last Synced: 2024-04-03T13:02:10.543Z (10 months ago)
- Topics: gradle, java, minecraft, spigot-plugin
- Language: Java
- Homepage:
- Size: 1.12 MB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 28
-
Metadata Files:
- Readme: Readme.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# sLimits
[![Build Status](https://github.com/Silthus/sLimits/workflows/Build/badge.svg)](../../actions?query=workflow%3ABuild)
[![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/Silthus/sLimits?include_prereleases&label=release)](../../releases)
[![codecov](https://codecov.io/gh/Silthus/sLimits/branch/master/graph/badge.svg?token=4LSRY6PW4Q)](https://codecov.io/gh/Silthus/sLimits)
![Spiget tested server versions](https://img.shields.io/spiget/tested-versions/78922)
[![Spiget Downloads](https://img.shields.io/spiget/downloads/78922)](https://www.spigotmc.org/resources/slimits.78922/)
[![Spiget Rating](https://img.shields.io/spiget/rating/78922)](https://www.spigotmc.org/resources/slimits.78922/)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)[![sLimits Splash Screen](assets/slimits_splash_small.png)](https://www.spigotmc.org/resources/slimits.78922/)
## Features
The plugin currently has the following features. Please [open a feature request](https://github.com/Silthus/sLimits/issues/new?assignees=&labels=&template=feature_request.md&title=) if you want a feature added.
- **Limiting block placement** based on limits configured inside `config.yml`.
- Keeps **track** of the **placed blocks** and destroying them decreases the limit counter.
- **Blocks destruction** of limited blocks by other players.
- **Simple flatfile storage.**## Installation
Simply drop the plugin into your `plugins` folder and restart your server.
## Configuration
There is a main `config.yml` in the plugins directory which holds all the options.
```yaml
# The time interval to save the placed blocks to the disk storage
# set to 0 to disable automatic saving
save-interval-ticks: 200
storage:
# the location relative to the plugin dir where the placed blocks are saved
block_placement: storage/block_placement/
limits:
block_placement:
# permission: slimits.limits.block_placement.stones
stones:
type: stone
limit: 10
# optionally deny breaking limited blocks placed by others
# default: false - everybody can break limited blocks of others
deny-breaking-by-others: true
# permission: slimits.limits.block_placement.bedrocks-10
bedrocks-10:
type: bedrock
limit: 10
# permission: slimits.limits.block_placement.bedrocks-20
bedrocks-20:
type: bedrock
limit: 20
```## Permissions
The players require the limit's permission for it to be applied. The permission is created from the limit's key: `slimits.limits.block_placement.`. The permission can be customized by setting it in the limit's config.
```yaml
limits:
block_placement:
# permission: my-super-permission
stones:
type: stone
limit: 10
permission: my-super-permission
```### Additional Permissions
You can give players the following permission to ignore all limits: `slimits.limits.ignore`.
> **NOTE**
> Players with OP rights will have this permission by default and are therefore excluded from all limits.
> Explicitly deny them the permission to allow limiting their actions.## Commands
Most of the commands are for admins to reload and save limits. Players have one command to show their current limits: `/limits`.
| Command | Permission | Description |
| ------- | ---------- | ----------- |
| `/limits` | `slimits.player.list` | Lists all active limits of the player. |
| `/limits list ` | `slimits.admin.list` | Lists the active limits of another online player. |
| `/limits save` | `slimits.admin.save` | Saves the current limit cache to disk. |
| `/limits reload` | `slimits.admin.reload` | Saves all limits and reloads them from the config. |