LobbyProtection

LobbyProtection 1.0.0

Compatible API Versions
LAST OFFICER
Sourcecode
https://github.com/Rakilem?tab=repositories
Plugin Name: LobbyProtection

The LobbyProtection plugin allows you to protect specific areas on your Nukkit server, preventing players from performing actions such as breaking or placing blocks, using buckets, activating flint and steel, and engaging in PvP within those areas. Additionally, you can specify players who are exempt from these restrictions and customize the messages that will be displayed when a player attempts to perform a prohibited action.

Main Features:
Area Protection: Define protected areas with specific coordinates in different worlds.
Exempt Players: Configure a list of players who can bypass the protections.

Customizable Messages:
Configurable messages displayed when a player attempts prohibited actions.

Visual Particles:
Generates smoke particles around the player when they interact within the protected area.
Usage and Configuration

1. Plugin Installation Download the JAR file of the AreaProtect plugin.
Place the file in the plugins folder of your Nukkit server.
Restart the server or use the /reload command to load the plugin.

2. Plugin Configuration After installing the plugin, a configuration file named config.yml will be automatically generated in the plugin folder. Here you can define the protected areas and the list of exempt players.

Example of config.yml:

Java:
protected-areas:
  - name: lobby1
    world: "world"
    corner1:
      x: 100
      y: 50
      z: 100
    corner2:
      x: 200
      y: 100
      z: 200
  - name: lobby2
    world: "world_nether"
    corner1:
      x: 50
      y: 30
      z: 50
    corner2:
      x: 150
      y: 80
      z: 150

exempt-players:
  - "Player1"
  - "Player2"
Description of Sections:
protected-areas: Defines the areas you want to protect. Each area has a name, the world it’s located in, and the coordinates of the two corners that delineate the area.

exempt-players:
A list of players who can bypass the restrictions in the protected areas.

3. Customizable Messages A file named messages.yml will also be generated, where you can customize the messages that will be shown to players attempting prohibited actions.

Example of messages.yml:

Java:
messages:
  block_break: "§cYou cannot break blocks in the protected area!"
  block_place: "§eYou cannot place blocks in the protected area!"
  bucket_empty: "§bYou cannot empty buckets in the protected area!"
  use_flinsteel: "§6You cannot use flint and steel in the protected area!"
  pvp_disabled: "§4You cannot attack other players in the protected area!"
  default: "§7Action not allowed in the protected area!"
4. Restart the Server After making any changes to the configuration, be sure to restart the server or use /reload to apply the changes.
Author
Rakilem
Downloads
97
Views
299
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Rakilem

  • MaintenanceMode
    MaintenanceMode
    Manage server maintenance seamlessly with smooth transitions and access control.
  • BloodParticles
    BloodParticles
    BloodParticles: Adds red particle visual effects upon taking damage in Minecraft.
  • TeleportPads
    TeleportPads
    TeleportPads: Use pressure plates for instant travel between locations in Minecraft effortlessly.
  • FastSleepPlugin
    FastSleepPlugin
    FastSleepPlugin: speeds up Minecraft nights based on sleeping players for smoother gameplay transiti
  • Health Bar
    Health Bar
    Customize the text over a mob head (name, health and max health)!
Top