connection-lost / LockettePro

LockettePro - A much better Lockette plugin for Bukkit [1.8 - 1.12]
42 stars 59 forks source link

Suggestion: Auto Lock Blocks #60

Open ygtdmn opened 7 years ago

ygtdmn commented 7 years ago

Hi, i have a suggestion. When a player place a block that specified in config, block automatically locks. For example automatically add a lock sign to a mob spawner block when it placed.

connection-lost commented 7 years ago

This is technically very hard because we need to know where the sign should be... Or most importantly, where the player want the sign to be...

ygtdmn commented 7 years ago

We can get players facing direction. And add the sign opposite of that direction. For example if player is looking North we can add the sign South side of the placed block.

I found a good util in there: https://bukkit.org/threads/direction-the-playser-faces-north-south.20773/

connection-lost commented 7 years ago

Getting the player's direction is not a problem. The problem is, you can not always get the player's intended direction correctly.

ygtdmn commented 7 years ago

Player can disable auto-locking if he wants?