Command Regions - Execute commands in regions! (> 1.13 & 1.12) 1.4.4

Create regions (built in in-game region creator) and execute commands on region enter or leave

  1. Astero
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.12
    • 1.13
    Contributors:
    Astero(V3thos)
    [​IMG]
    (https://www.astero.me/)
    (TEST SERVER: 88.99.91.195:25944)

    Command Regions allows you to easily execute commands/send messages when entering/leaving a region using a built-in region creator.


    This plugin is built specially for the version > 1.13. (BUT WORKS IN 1.12.2 too)

    So, why did I develop this plugin? Well, as a past server owner, a similar plugin that uses world guard regions to execute commands was way outdated and wouldn't work on > 1.13 versions. As you know that 1.13 is a huge chance for Minecraft, I had to take this into my own hands and develop my own.

    You can do lots with this plugin; you just need a little creativity. An example is like the video below - teleport to a world, spawn is made as the region from this plugin and executes "/rtp". This is great for allowing players to get out of spawn easily. Another idea might be, PLAYER A walks into the region, gives donor item(if donator) or gives a kit. When PLAYER A leaves, take said item or kit.

    https://i.gyazo.com/3c230bd96e8c46a06cb5afeaffa3464f.gif
    (Have no idea why I can't add GIFs.)


    ( Since my GIF can not be shown :( )


    Features
    • Built in region creator - easy to use and no dependencies needed for region creation.
    • Able to execute both player and /or console commands when entering/leaving a region.
    • Super easy and very configurable plugin.
    • Execute commands on region enter/leave.
    • Option to send a message to entering/leaving players.
    • Easily modify regions via regiondata.yml when away from computer.

    NOTE: If your regions are resetting after a server restart, please put the region name as your main(spawning) world name. It should fix everything.
    Code (Java):
    #COMMAND REGIONS - CREATED BY ASTERO.

    settings:
      # Make sure world-name is set correctly as your server's world name.
      world-name: '
    world'
      wand-material: '
    COOKIE'

    messages-en:
      prefix: '
    &7[Command-&6Regions&7]'
      nopermissions: '
    &6Whoopies! &7You do not have the correct permissions to use this command!'
     
    region1:
      # Execute this command on region enter. Leave blank for no commands for either player or console.
      playercommandonenter: '
    kick'
      consolecommandonenter: '
    say Entering region 1!'
     
      # Whether there should be a message sent on region enter.
      messageonenter: true
     
      # If messageonenter is true, this message will be sent.
      entermessage: '
    &7You are now entering &6Region 1&7!'
     
      # Whether there should be a message sent on region leave.
      messageonleave: true
     
      # If messageonleave is true, this message will be sent.
      leavemessage: '
    &7You are now leaving &6Region 1&7!'
     
      # Leave blank if you don'
    t want a playercommand or consolecommand.
      playercommandonleave: 'ban'
      consolecommandonleave: 'say Leaving region 1'
     
    region2:
      # Execute this command on region enter. Leave blank for no commands for either player or console.
      playercommandonenter: 'kick'
      consolecommandonenter: 'say Entering region 2!'
     
      # Whether there should be a message sent on region enter.
      messageonenter: true
     
      # If messageonenter is true, this message will be sent.
      entermessage: '&7You are now entering &6Region 2&7!'
     
      # Whether there should be a message sent on region leave.
      messageonleave: true
     
      # If messageonleave is true, this message will be sent.
      leavemessage: '&7You are now leaving &6Region 2&7!'
     
      # Leave blank if you don't want a playercommand or consolecommand.
      playercommandonleave: '
    ban'
      consolecommandonleave: '
    say Leaving region 2'
     
    region3:
      # Execute this command on region enter. Leave blank for no commands for either player or console.
      playercommandonenter: '
    kick'
      consolecommandonenter: '
    say Entering region 3!'
     
      # Whether there should be a message sent on region enter.
      messageonenter: true
     
      # If messageonenter is true, this message will be sent.
      entermessage: '
    &7You are now entering &6Region 3&7!'
     
      # Whether there should be a message sent on region leave.
      messageonleave: true
     
      # If messageonleave is true, this message will be sent.
      leavemessage: '
    &7You are now leaving &6Region 3&7!'
     
      # Leave blank if you don'
    t want a playercommand or consolecommand.
      playercommandonleave: 'ban'
      consolecommandonleave: 'say Leaving region 3'
     
    region4:
      # Execute this command on region enter. Leave blank for no commands for either player or console.
      playercommandonenter: 'kick'
      consolecommandonenter: 'say Entering region 4!'
     
      # Whether there should be a message sent on region enter.
      messageonenter: true
     
      # If messageonenter is true, this message will be sent.
      entermessage: '&7You are now entering &6Region 4&7!'
     
      # Whether there should be a message sent on region leave.
      messageonleave: true
     
      # If messageonleave is true, this message will be sent.
      leavemessage: '&7You are now leaving &6Region 4&7!'
     
      # Leave blank if you don't want a playercommand or consolecommand.
      playercommandonleave: '
    ban'
      consolecommandonleave: '
    say Leaving region 4'
     
    region5:
      # Execute this command on region enter. Leave blank for no commands for either player or console.
      playercommandonenter: '
    kick'
      consolecommandonenter: '
    say Entering region 5!'
     
      # Whether there should be a message sent on region enter.
      messageonenter: true
     
      # If messageonenter is true, this message will be sent.
      entermessage: '
    &7You are now entering &6Region 5&7!'
     
      # Whether there should be a message sent on region leave.
      messageonleave: true
     
      # If messageonleave is true, this message will be sent.
      leavemessage: '
    &7You are now leaving &6Region 5&7!'
     
      # Leave blank if you don'
    t want a playercommand or consolecommand.
      playercommandonleave: 'ban'
      consolecommandonleave: 'say Leaving region 5'
     
     


     

    Code (YAML):
    REGION5:
      '1'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
      '2'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
    REGION4
    :
      '1'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
      '2'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
    REGION3
    :
      '1'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
      '2'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
    REGION2
    :
      '1'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
      '2'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
    REGION1
    :
      '1'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
      '2'
    :
        location
    :
          X
    : 0
          Y
    : 0
          Z
    : 0
     



    Commands
    /location view <location1/location2> - view the positions set by the wand.
    (cr.regions)

    /cr help - brings out the command list.
    (cr.regions)

    /cr save <1-5> - saves a region.
    (cr.regions)

    /cr delete <1-5> - deletes a region.
    (cr.regions)

    /cr wand - obtain the wand to select the positions.
    (cr.regions)

    /cr reload - reloads the plugin. - reloads config.yml & regiondata.yml
    (cr.regions)

    /blank - blank command.



    A short video explaining how the plugin works. (NOTE: You can change the commands to whatever you like.)

    Using this plugin on your server? Private message me and you might see your server featured here!


    Upcoming features
    • GUI interaction, listing things such as your regions, adding commands via GUI, messages, etc.
    • More regions available. I understand that there are limited regions right now, the reason is really simple; I'm currently trying to develop my own region making system and I'm actively trying to find ways to upgrade it and make it more efficient. I ask that you be very patient because I can assure you that this plugin would be updated regularly.
    • More commands in a region if the feedback is high.
    Feel free to list any more suggestions! I am actively trying to implement features to the plugin, but not to worry, I will be reading each and every one of the feedbacks/suggestions given and try to implement it accordingly.

    Found a bug? Please private-message me or join the support Discord server. Please do not put it in the reviews section as reviews are not for bugs.

    I'd also like to give thanks to SirHyperNova for broadening my imagination.

    Visit my other plugins:
    LotteryPool - WINNER TAKES ALL! (> 1.13)
    (An extremely efficient way of economic balancing, allowing poorer players to have a chance to earn.)

    PotionCreation - Put up to 14 different effects in ONE potion.
    (Potion Creation allows your players to create potions with their choice of effect(s) with a fee! Supports up to 14 effects in one potion.)


    If you'd want to support me and my future plugins, buy me a coffee here.


    (Proudly sponsored by TorchNode)
    [​IMG] (Click on the image for a redirect.)


    Join the support server here,
    [​IMG]

Recent Reviews

  1. Zaburi
    Zaburi
    2/5,
    Version: 1.4.4
    I CANT EDIT THE COMANDS in the plugin, when i put the comands in the config, dont change
    1. Astero
      Author's Response
      Please ask for support like the other 100 people on Discord rather than posting here.

      This plugin is rather technical and takes a while for you to fully understand how to use.
  2. Thundurh
    Thundurh
    4/5,
    Version: 1.4.4
    Great plugin, well made. However, leaving command sections blank in config sends an "unknown comand" in chat.
    1. Astero
      Author's Response
      You can fix that by putting "blank" in it! Thanks for the review! :)
  3. gyap01
    gyap01
    5/5,
    Version: 1.3
    A straight to the point plugin for regions. Helps me manage my world and players in my server easily.
    1. Astero
      Author's Response
      Thank you for the review! Much appreciated.