marcelo-mason / PreciousStones

Self-service protection for Minecraft servers
http://dev.bukkit.org/server-mods/preciousstones/
56 stars 66 forks source link

Question: Anyone have any Extra Flags? #1127

Open Omanoctoa opened 6 years ago

Omanoctoa commented 6 years ago

Hello! I'm looking for ways to add extra flags to PreciousStones or wondering if anyone has been able to add any?

I'm looking for a burn: # of ticks flag, as well as a possible replace-near flags...

replace-near: range     ##Radius to replace blocks from, if different from radius flag (likely unnecessary)
replace-blocks: block_names_or_IDs     ##Block(s) to be replaced
replace-with: block_names_or_IDs     ##Blocks(s) to replace into
replace-on-entry: true     ##Replace blocks when a player enters the field (global-able, reverse-able?)
replace-on-exit: true     ##Replace blocks when all players leave the field (global-able, if entry cannot be reversed)
replace-revert: true     ##Replace old blocks once all (allowed) players leave the field, or someone enters

Obviously the replacing flags would likely require a WorldEdit hook, but in theory would allow for the creation of toggle-able areas, vanishing walls/floors, draining lakes/pools, or toggle-able redstone torches. Importantly, it should only replace the blocks when the first time a player enters the field, and revert back once all players have left the field. This will hopefully prevent glitching.

Finally, a Silent: true flag, to not display any alerts that a field was placed/broken or related messages. This one would be primarily to hide fields from players, allowing for a more immersive experience.

On a related note: is it possible to create field-specific messages or make custom messages that can be used for certain fields. Another plugin, Craftbook, allows me to use specific custom messages instead of the regular messages using by adding in another "flag" that targets a specific line in the language file, like this... consumable-message: mech.command-items.summoning Is this possible in PreciousStones?