NoPortals 2.2

Prevents nether portals at specific locations.

  1. stonar96
    WARNING!! Updating from v1.0 to v2.0 and above is problematic (see Configuration)! Do not just replace the old jar! Make a backup before updating!

    Description:
    This plugin prevents players from creating their own nether portals at specific locations, WorldGuard regions, worlds or everywhere. So the players have to use the main portal at the spawn for example. With this plugin you have no troubles with portals which spawn at locations where they shouldn't spawn.

    Features:
    • Minecraft 1.15.2 (not tested for other versions)
    • Prevents nether portals at specific locations, in WorldGuard regions, in worlds or everywhere
    • Based on priorities and region priorities
    • Commands (/noportals <reload, enable, disable>)
    • Permissions for commands

    Configuration:
    Path: plugins/NoPortals/config.yml
    Code (YAML):
    # example config
    #
    # noPortals:
    #   everywhere:                                                 everywhere, default
    #     enablePortals: true
    #   worlds:
    #     world:                                                    overwrites everywhere
    #       enablePortals: false
    #     world_the_nether:
    #       enablePortals: false
    #   regions:                                                    overwrites worlds (if regions overlap -> higher priority overwrites, if priorities equal -> false overwrites)
    #     worlds:
    #       world:
    #         exampleRegion:
    #           enablePortals: true
    #   locations:                                                  overwrites regions
    #     world;10;60;20:
    #       enablePortals: true

    noPortals
    :
      everywhere
    :
        enablePortals
    : true
    WARNING!! You have to make some changes in your config.yml (in the regions section) if you update from v1.0 to v2.0.
    Code (YAML):
    # example config
    #
    # noPortals:
    #   everywhere:                                                 everywhere, default
    #     enablePortals: true
    #   worlds:
    #     world:                                                    overwrites everywhere
    #       enablePortals: false
    #     world_the_nether:
    #       enablePortals: false
    #   regions:                                                    overwrites worlds (if regions overlap -> higher priority overwrites, if priorities equal -> false overwrites)
    #     world;exampleRegion:
    #       enablePortals: true
    #   locations:                                                  overwrites regions
    #     world;10;60;20:
    #       enablePortals: true

    noPortals
    :
      everywhere
    :
        enablePortals
    : true
    Code (YAML):
    # This is an example configuration.
    #
    # noPortals:
    #   everywhere:                 # Everywhere, default value.
    #     enablePortals: true
    #   worlds:                     # Worlds overwrite everywhere.
    #     world:
    #       enablePortals: false
    #     world_the_nether:
    #       enablePortals: false
    #   regions:                    # Regions overwrite worlds (if the regions overlap -> higher region priority overwrites, if the region priorities are equal -> false overwrites).
    #     world;exampleRegion:
    #       enablePortals: true
    #   locations:                  # Locations overwrite regions.
    #     world;10;60;20:
    #       enablePortals: true

    noPortals
    :
      everywhere
    :
        enablePortals
    : true
     

    Commands and Permissions:
    /noportals reload
    • Description: Reloads the config.yml
    • Permissions: noportals, noportals.reload
    /noportals disable
    • Description: Disables the prevention until server restart or reload
    • Permissions: noportals, noportals.disable
    /noportals enable
    • Description: Enables the prevention
    • Permissions: noportals, noportals.enable

    Installation:
    • Download and install WorldGuard (if you want region support)
    • Download NoPortals.zip
    • Extract NoPortals.jar
    • Put NoPortals.jar in your plugins folder
    • Restart or reload your server

    Changelog:
    v1.0
    • Initial version (Minecraft 1.8)
    v2.0
    • Code cleanup
    • Configuration improvement and changes
    v2.1
    • Updated to Minecraft 1.15.2
    • Updated to WorldGuard and WorldEdit 7
    • Code cleanup
    • Configuration improvement
    v2.2
    • Added api-version to plugin.yml
    Source:
    Extract the whole project from NoPortals.zip.

    And now enjoy! Do what ever you want with this plugin.