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

Added support for exclusive reinforcement types #7

Closed sepiatonal closed 8 years ago

sepiatonal commented 8 years ago

To make a reinforcement type an exclusive reinforcement type, add a stringlist called reinforceables to that reinforcement type in the config.yml and list the blocks that the reinforcement type should be able to reinforce. For example

emerald: material: EMERALD requirements: 1 return: 1 percent_chance: 100 hit_points: 1000 mature_time: 500 scale_amount: 0 reinforceables:

would make it so emerald can only reinforce chests and cobblestone. Reinforcement types that do not contain a reinforceables stringlist will act normally.

sepiatonal commented 8 years ago

It's definitely covering ctf and ctr, but I did miss ctar. I'll add that now real quick.

sepiatonal commented 8 years ago

Everything should be good now. I'm fairly certain that this covers every case where a reinforcement can be created (/ctr, /ctf and /ctar). Let me know if you think of another case that I should add a check to.

ShadedJon commented 8 years ago

This looks fantastic.

I'm going to make so many evil things with this :+1:

Great job!

ProgrammerDan commented 8 years ago

Replaced with #9 , merged, thank you again!