Skip to content

Releases: espidev/ProtectionStones

2.0.0 - Major Config Overhaul and /ps get, /ps give, /ps sethome, and Vault Integration!

21 Apr 14:48
Compare
Choose a tag to compare

Hello!
Please read this fully before upgrading from an older version.

This update overhauls the configuration to use a different file format, and have custom settings per block. It also now stores data within WorldGuard flags rather than on separate files (hiddenpstones.yml). As a result, a conversion is required. I have built an automatic converter into the plugin, so please start the server with the updated plugin once before making further configuration changes.

Note: The config converter is not perfect, so the order might seem a bit messed up. I recommend taking a new version of the block1.toml config from the overview page and transferring your settings to it.

New Features:

New Restrict Obtaining Config Option!

This new config option is intended to replace the old no silk-touch behaviour. This option prevents blocks obtained naturally (ex. mining) to be used as protection blocks, and only allows players to obtain the protect block with /ps give and /ps get. This is done internally by adding NBT tags to blocks.

More Config Options per block!

You can now set many more config options (ex. flags) per block!

/ps get [block]

This command allows you to get a protection block. There is optional support for a price for the block (requires Vault). You can also add an alias for the block in the config.

/ps give [block] [player]

This command can be used by admins and shops to give protection blocks to players. This can be used with the "restrict obtaining" config option to sell protection blocks to players from another plugin, while restricting obtaining the block naturally.

/ps sethome

This command can be used to change the position of the protection block's home (for /ps tp and /ps home)

Display Name and Lore for Protection Blocks!

In the config, you can change the display name and lore of protection blocks obtained by /ps get and /ps give.

/ps admin fixregions

This command allows admins to run the region upgrading process again, and check if all of the ps internal flags exist.

Custom permission per protection block!

In the config, you can now define a special permission per protection block!

Teleport delay for /ps home or /ps tp!

You can now set a teleport delay for these commands, as well as requiring players to not move for that time. You can bypass this with "protectionstones.tp.bypasswait"

Console can now use /ps admin commands

The /ps admin commands have been revamped to be faster, and can be used by the console.

Removed the need for hiddenpstones.yml

You can remove the file.

Many, many bug fixes and smaller additions!

Please be sure to report bugs to the discussion thread or on the GitHub issues page.
Thank you!

1.7.1

18 Apr 00:36
Compare
Choose a tag to compare

This minor update fixes many issues, especially ones related to setting flags. It also now does not need to call Mojang's servers for UUIDs, speeding up commands!

Fixes and Optimizations:

  • Removed calls to Mojang's servers for name to UUIDs, by adding a cache
  • Rewrote the flag parsing code entirely, making it future proof and not flag specific
  • Fixed some issues relating to using the '*' permission in some plugins
  • Fixed some issues for offline servers with UUIDs

1.7.0

14 Apr 18:40
Compare
Choose a tag to compare

Hey!
This is a relatively large update, and brings many new features as well as bug fixes.

New Features:

  • Added /ps reload! Can now reload changes from the config while the server is running!
  • Added customizable messages in messages.yml!
  • Added a new /ps help menu that removes commands the player does not have permission for
    Fixes and Reworks:
  • Reworked many of the messages in the plugin
  • Fixed a bug where pistons caused errors when interacting with protection stones
  • Fixed blocks being removed when the inventory is full
  • Fixed default priority option not being set
  • Removed regen functionality since it caused major lag issues and is rarely used
  • Completely reworked the placing and breaking block logic to be more performant
    Thank you!