Перейти к содержимому
Mineforgian

Block Ban

Ban blocks from being placed in certain worlds, or the whole server

Загрузки
72
Подписчики
1
Обновлён
26 октября 2025 г.
Лицензия
MIT

Опубликован 26 октября 2025 г.

Block Ban is a Paper plugin created to ban blocks from being placed in certain worlds, or the whole server. The configuration file looks something like this:

default-banned-message: "<red>You cannot place that block!</red>"

worlds:
  # This section is specific to the overworld. Please change if your overworld has a different name.
  world:
    # This is optional, the default banned message will be used if not specified here.
    banned-message: "<red>You cannot place that block!</red>"

    # Leaving this empty is the same as not including this world in the list.
    banned-blocks:
      TNT:
        banned-message: "<red>You cannot place TNT!</red>"

      # No banned message is specified here, so the world's message will be used.
      OBSIDIAN: {}

  # This section contains server-wide block bans.
  __server__:
    banned-blocks:
      TNT:
        banned-message: "<red>You cannot place TNT! In the overworld, this message will be overwritten.</red>"

A minimal version that only bans TNT server-wide would look like this:

default-banned-message: "<red>You cannot place that block!</red>"

worlds:
  __server__:
    banned-blocks:
      TNT: {}

Of course, you may want custom messages for each banned block. That is totally doable, and is why Block Ban should be your plugin for banning blocks. The provided example in the real configuration is more direct than this, and explains everything you need to know when banning blocks.

Ченджлог

0.1.0Релиз1.21.8, 1.21.9, 1.21.10 · 26 октября 2025 г.

Info: A normal changelog was not included because nothing was changed, all of it was added.

The basic idea was implemented, but it still feels complex. Later versions may just fix bugs, include more protections against block placement, or listen to crummy suggestions. Feel free to do that on the GitHub!

Комментарии

Загружаем…