DevotedMC / Citadel

A Minecraft plugin to protect your chests and builds using in-game materials. Requires an attacker to break each block a certain number of times. Built for Spigot 1.14.4
https://www.devotedmc.com/citadel.html
BSD 3-Clause "New" or "Revised" License
2 stars 20 forks source link

Initial commit, adding in 100% return grace period #32

Closed ProgrammerDan closed 7 years ago

ProgrammerDan commented 7 years ago

Add "grace_period" to your individual reinforcement type definitions.

In minutes, defines the time where if you /ctb the block (and it has received no damage) you can get it back with 100% refund.

This will allow for complex reinforcements that are "permanent when set" -- 100% refund until damage or after a period of time, at which point, 0% refund (normal refund % applies) ... or any mix on the spectrum between "current state" and this new feature.

Note that default is "0" -- so no change is needed to existing configs, this is a safe upgrade. Tested. Will backport if requested.