PlayPro / CoreProtect

CoreProtect is a blazing fast data logging and anti-griefing tool for Minecraft servers.
Artistic License 2.0
637 stars 311 forks source link

[Suggestion] Config to disable safety teleport #328

Open KabanFriends opened 1 year ago

KabanFriends commented 1 year ago

There should be a config value to disable safety teleport & automatically placing dirt blocks, as this is essentially griefing the original build by placing an unnecessary dirt block (This can be an issue on adventure mode worlds)

codeHusky commented 11 months ago

I'd +1 this, or at least improve the mechanism that the safety teleport uses to place the block. ATM it can delete blocks like player heads if someone teleports to one suspended in the air. This caused a bit of a headache on my server and required a /co restore to fix - ideally the dirt block should disappear back to whatever it used to be when the person teleporting moves, or maybe just deny the teleport unless the person's flying per config (?)

Intelli commented 11 months ago

This has been resolved here: https://github.com/PlayPro/CoreProtect/commit/66b77ee75a24dac13f9cbf95242b504e1494dde7

The following changes have been made:

  1. A safety block is only placed if the player is in Survival mode.
  2. Safety blocks will no longer replace other solid blocks such as player heads.
  3. The safety block will now use an invisible barrier instead of dirt, on Spigot/Paper servers.
  4. The safety block will automatically be removed/reverted after 60 seconds, or on server shutdown.