While currently considered by some to be a "feature" players are able to use pearls to Teleport through any number of blocks. On many pvp, Towny, and Faction based servers this is a very serious issue which has caused most servers to remove Pearl teleportation all together. Rather than remove teleportation, I wrote this quick plugin for my Civilization themed server at http://avrgaming.com.
How it Works
It simply checks the position that the player would teleport to during a pearl teleportation event, and verifies that the block is a "passable" block, aka that the block can be moved through normally. If the position the player is trying to teleport to is not passable, then this plugin denies the teleport event, and optionally sends a message to the player notifying the player that teleportation was cancelled. Players are also refunded their pearl.
Sample Configuration
Pretty lean configuration, the defaults should work fine for most servers. Biggest concern would be if you want to customize your message or not display one at all.
# If true, displays a message to the player when this plugin prevents teleportation show_message: true # The message to show the player when this plugin prevents teleportation message: 'Teleport failed, you cannot teleport into blocks' # This is a list of ID's for blocks that are "passable" aka # blocks that a player can walk through. This list is used # to make sure the player is moving into a passable block. # The default list should work as-is but it is here in case # Mojang adds new blocks, you can fix the plugin yourself. passable_blocks:
Like this Plugin? Want to say thanks?
Feel free to donate using this link.

