Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commands Usage

Invvk edited this page Feb 16, 2022 · 7 revisions

Set Flags Usage

Set flags are a flags that can hold more than 1 value, a list of values.
Current set types this plugin uses:

  • Material (Blocks, STONE,REDSTONE_BLOCK, etc...)
  • Commands
  • Potion Effects
  • Entities

if you still have extra questions or you don't understand what was written, don't hesitate to join our discord

Discord Server

Material Command Usage

when you use any of the material flags, you need to provide the material name.
To add multiple blocks you simply separate them using a comma (,).

To get the list of materials please refer to this link

  • Some command examples:
    • /rg flag region allow-block-place stone
    • /rg flag region deny-block-break coal_block,diamond_block

Command Flags Usage

when you set any of the commands flag you can add a command (/ is not needed).
To add multiple commands you simply separate them using a comma (,).
if it is required or you want to use the player's name in a command, you can use %username% placeholder.

  • Some command examples:
    • /rg flag region console-command-on-entry feed %username%, heal %username%
    • /rg flag region command-on-exit tell Invvk goodbye

Potion Effect flags Usage

when you set any of the potion effect flag you need to specify the name of the potion effect.
optionally and only got give-effects you can supply the amplifier (a number from 0 to 255) and show Particles (boolean true or false) option.

For blocked effects, unfortunately, you can't block a specific amplifier, like you can't block speed 2. if you define a blocked effect it will block the entire effect. which means you must only supply the potion effect name.

finally, you can add multiple potion effects using a comma (,).

To get the potion effects please click here.

  • Some command examples:

    • /rg flag region give-effects speed 1 false, fire_resistance 0 true
    • /rg flag region give-effects jump_boost 1
    • /rg flag region blocked-effects speed, regeneration
  • don't do:

    • /rg flag region blocked-effects speed 1 true // this will throw an error

Entity Flags Usage

when you set any of the entity flags you need to specify the name of entity(s).
as always, you can add multiple entities using comma (,).

To get the entities please click here.

  • some command examples:
    • /rg flag region allow-entity-place boat
    • /rg flag region allow-entity-place boat,minecart
    • /rg flag region deny-entity-place boat

Teleport Flags Usage

when you set any of the teleport flag you can either specify the coordinates x,y,z or you can type here to grab your current location.

  • Some command examples:
    • /rg flag region teleport-on-entry here
    • /rg flag region teleport-on-entry 12,64,-12

Double Flags Usage

When you use double flags, you will use decimals like 1.0 or 0.4.

Note that that decimals are capped at 1.0, if we don't do that it will cause issues and errors on console.

  • Some command examples:
    • /rg flag region walk-speed 0.6
    • /rg flag region fly-speed 1.0

String Flags Usage

when you use string flags, you can basically type anything.
Also, color codes are supported '&'.

  • Some command examples:
    • /rg flag region chat-prefix &bREGION YOOOOOO

Boolean Flags Usage

when you use boolean flags, your response are limited to yes/no.

  • Some command examples:
    • /rg flag region keep-inventory yes
    • /rg flag region keep-exp no

State Flags Usage

when you use state flags, your response are limited to deny/allow/none.

  • Some command examples:
    • /rg flag region worldedit allow
    • /rg flag region godmode deny