DisableEffects - Asmodeus1354/VastPlugins GitHub Wiki

Description

Enhance your Minecraft server with robust teleportation controls and protection settings! This plugin allows you to restrict teleportation in spectator mode and specified worlds while providing customizable permissions and error messages. Effortlessly manage player actions and log teleport attempts for improved server security and player experience.


Commands

/de reload

Reloading the plugin

/de add <potion effect> <value>

Use this to add missing potion effects easily. You can use wildcards ("*")!

/de switch <potion effect> <value name> <value>

Modify existing potion values effortlessly. You can use wildcards ("*")!

  • Potion Effect: The name of the effect (e.g., "SPEED").
  • Value Name: The property you want to change (e.g., "splash").
  • Value: Set it to "true" or "false" to enable or disable the property.

Configuration

Configuring restrictions and permissions for teleport actions

# If you need help with the config file, join my discord server https://discord.com/invite/8nE5HX5ecY

############################################################
# +------------------------------------------------------+ #
# |                  Error Messages                      | #
# +------------------------------------------------------+ #
############################################################

messages:
  consume: "§4[ERROR] §cYou can't consume that!"
  shoot: "§4[ERROR] §cYou are not allowed to shoot that!"
  splash: "§4[ERROR] §cYou are not allowed to throw that!"
  splash_player: "§4[ERROR] §cYou are not allowed to throw that on players!"

############################################################
# +------------------------------------------------------+ #
# |                  General Settings                    | #
# +------------------------------------------------------+ #
############################################################

# Return the potion if an error occurs. Default is true.
return_potion_on_error: true

# Permissions to bypass restrictions use this format:
  # disableEffects.bypass.<effect_name>
  # Example for speed:
  # disableEffects.bypass.speed

############################################################
# +------------------------------------------------------+ #
# |                  Effect Settings                     | #
# +------------------------------------------------------+ #
############################################################

# For each effect, you can enable or disable different methods:
# - splash: Allow or deny using splash potions (PLAYER)
# - arrow: Allow or deny shooting tipped arrows (PLAYER)
# - dispenser: Allow or deny using dispensers for potions or arrows (DISPENSER)
# - drink: Allow or deny drinking potions (PLAYER)
# - brew: Allow or deny brewing a potion effect (all)
# Optional settings:
# - apply_cmd: Allow or deny effects from commands
# - apply_all: Allow or deny effects from any source
# - apply_plugin: Allow or deny effects from plugins
# - on_entity: Allow or deny effects on entities with splash potions (NOT A PLAYER). TRUE to allow.

# Default for these optional settings is false if not specified.

effects:
  # Increases movement speed.
  SPEED:
    splash: true
    arrow: true
    dispenser: true
    drink: true
    brew: true

... all effects in the plugin config

Installation

To successfully install the DisableEffects plugin, follow these steps:

Step 1: Download the Plugin

  • Obtain the latest version of the DisableEffects plugin .jar file from the releases page.

Step 2: Place the File

  • Move the downloaded .jar file into your server's plugins folder.
    • The path typically looks like this: /container/plugins/

Step 3: Restart the Server

  • Restart your Minecraft server to load the new plugin. This can usually be done by using the following command in your server console: restart Alternatively, you can stop the server and start it again manually.

Step 4: Verify Installation

  • Check if your server loaded the plugin. Run in your server console: pl or plugins and check if DisableEffects is green.

Step 5: Configure the Plugin

  • Open the config.yml in the DisableEffects folder within the plugins directory.
    • The path typically looks like this: /container/plugins/DisableEffects
  • Configure the plugin as desired to tailor the plugin to your server's needs. Default file

FAQ

If you encounter any issues, join our discord and open a ticket here.

⚠️ **GitHub.com Fallback** ⚠️